mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
daemon: Make argp usage compatible with libc on GNU/Hurd.
* nix/nix-daemon/guix-daemon.cc (parse_opt): Cast return value to `error_t' for the sake of GNU/Hurd. Reported by Matthew Lien <bluet@bluet.org> at <http://lists.gnu.org/archive/html/bug-guix/2013-07/msg00002.html>.
This commit is contained in:
parent
a1c39ede7d
commit
5363abb776
1 changed files with 2 additions and 2 deletions
|
@ -171,10 +171,10 @@ parse_opt (int key, char *arg, struct argp_state *state)
|
||||||
settings.thisSystem = arg;
|
settings.thisSystem = arg;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return ARGP_ERR_UNKNOWN;
|
return (error_t) ARGP_ERR_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return (error_t) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Argument parsing. */
|
/* Argument parsing. */
|
||||||
|
|
Loading…
Reference in a new issue