diff --git a/src/options.c b/src/options.c
index 6f674c6cd61b9d3736dfd27ebfd87d2ea224813b..0a453e23a51ea403885a878782208ddac6b70506 100644 (file)
--- a/src/options.c
+++ b/src/options.c
static void
display_help(void)
{
- unsigned i;
-
printf("Usage: %s [OPTION]...\n", PACKAGE);
- for (i = 0; i < option_table_size; ++i) {
+ for (unsigned i = 0; i < option_table_size; ++i) {
char tmp[32];
if (option_table[i].argument)
void
options_parse(int argc, const char *argv[])
{
- int i;
const arg_opt_t *opt = NULL;
option_callback_fn_t option_cb = handle_option;
- for (i = 1; i < argc; i++) {
+ for (int i = 1; i < argc; i++) {
const char *arg = argv[i];
size_t len = strlen(arg);