Commit 17bf459a authored by Niels Möller's avatar Niels Möller

(main_argp_parser): Fixed C99-ism.

Rev: src/lsh-writekey.c:1.40
parent 585dec15
......@@ -199,13 +199,14 @@ main_argp_parser(int key, char *arg, struct argp_state *state)
{
if (!self->label)
{
const char *name;
USER_NAME_FROM_ENV(name);
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 300
#endif
char host[MAXHOSTNAMELEN];
const char *name;
USER_NAME_FROM_ENV(name);
if (!name)
{
argp_failure(state, EXIT_FAILURE, 0,
......
Markdown is supported
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