summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7fca69e)
raw | patch | inline | side by side (parent: 7fca69e)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Tue, 26 Jul 2011 12:49:19 +0000 (14:49 +0200) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Tue, 26 Jul 2011 12:58:49 +0000 (14:58 +0200) |
It just looks cleaner.
src/options.c | patch | blob | history |
diff --git a/src/options.c b/src/options.c
index 53e68d0d3f0c0830e7133420937b110e688811cc..2f21dc0837a31085a25b00c9a68cee5403dd44e2 100644 (file)
--- a/src/options.c
+++ b/src/options.c
const arg_opt_t *opt = NULL;
option_callback_fn_t option_cb = handle_option;
- i=1;
- while (i < argc) {
+ for (i = 1; i < argc; i++) {
const char *arg = argv[i];
size_t len = strlen(arg);
} else
option_error(ERROR_BAD_ARGUMENT, arg, NULL);
}
- i++;
}
if (opt && opt->argument == NULL)