summaryrefslogtreecommitdiff
path: root/src/embim/embim-context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/embim/embim-context.c')
-rw-r--r--src/embim/embim-context.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/embim/embim-context.c b/src/embim/embim-context.c
index ddbd74b..66d8227 100644
--- a/src/embim/embim-context.c
+++ b/src/embim/embim-context.c
@@ -84,7 +84,7 @@ embim_context_init (int *argc, char ***argv)
{
static const struct option longopts[] = {
{ "device", required_argument, 0, 'd' },
- { "noop", no_argument, 0, '1' },
+ { "noop", no_argument, 0, '1' },
{ "version", no_argument, 0, 'V' },
{ "help", no_argument, 0, 'h' },
{ 0, 0, 0, 0 }
@@ -97,9 +97,9 @@ embim_context_init (int *argc, char ***argv)
while (iarg != -1) {
iarg = getopt_long (*argc, *argv, "d:hV", longopts, &idx);
switch (iarg) {
- case '1':
- noop = true;
- break;
+ case '1':
+ noop = true;
+ break;
case 'd':
if (device_path) {
fprintf (stderr, "error: device path redefined.\n");
@@ -118,13 +118,12 @@ embim_context_init (int *argc, char ***argv)
if (!device_path) {
fprintf (stderr, "error: device path not given.\n");
- return -2;
+ return -2;
}
return 0;
}
-
void
embim_context_shutdown (void)
{