Commit 28846938 authored by Niels Möller's avatar Niels Möller
Browse files

(main_argp_parser): Don't use optarg (reported

by jps).

Rev: src/lsh-keygen.c:1.4
parent 4c5a9444
......@@ -44,9 +44,11 @@
#include <stdlib.h>
#include <string.h>
#if 0
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#endif
#include "lsh-keygen.c.x"
......@@ -99,7 +101,7 @@ main_argp_children[] =
};
static error_t
main_argp_parser(int key, char *arg UNUSED, struct argp_state *state)
main_argp_parser(int key, char *arg, struct argp_state *state)
{
CAST(lsh_keygen_options, self, state->input);
......@@ -136,7 +138,7 @@ main_argp_parser(int key, char *arg UNUSED, struct argp_state *state)
case 'l':
{
char *end;
long l = strtol(optarg, &end, 0);
long l = strtol(arg, &end, 0);
if (!*arg || *end)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment