diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-21 13:19:16 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-21 13:19:16 +0200 |
commit | e5c4d8bf46d00831bdb8da92edfe996ada0110fb (patch) | |
tree | 82aecb8f2f944beadfa4722547fa30b6aec1451a /libfshelp | |
parent | de67a25fed974b5446194cb14a3ce5e6cdf60775 (diff) | |
download | hurd-e5c4d8bf46d00831bdb8da92edfe996ada0110fb.tar.gz hurd-e5c4d8bf46d00831bdb8da92edfe996ada0110fb.tar.bz2 hurd-e5c4d8bf46d00831bdb8da92edfe996ada0110fb.zip |
Fix gcc warning
* libfshelp/fshelp.h (fshelp_set_options): Make `argp` pointer const.
* libfshelp/set-options.c (fshelp_set_options): Likewise.
* doc/hurd.texi (fshelp_set_options): Likewise.
Diffstat (limited to 'libfshelp')
-rw-r--r-- | libfshelp/fshelp.h | 2 | ||||
-rw-r--r-- | libfshelp/set-options.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libfshelp/fshelp.h b/libfshelp/fshelp.h index 43fbcd78..a7702ca2 100644 --- a/libfshelp/fshelp.h +++ b/libfshelp/fshelp.h @@ -258,7 +258,7 @@ fshelp_exec_reauth (int suid, uid_t uid, int sgid, gid_t gid, struct argp; /* Include <argp.h> to get the real thing. */ /* Invoke ARGP with data from DATA & LEN, in the standard way. */ -error_t fshelp_set_options (struct argp *argp, int flags, +error_t fshelp_set_options (const struct argp *argp, int flags, const char *argz, size_t argz_len, void *input); diff --git a/libfshelp/set-options.c b/libfshelp/set-options.c index 77cdba15..a627b841 100644 --- a/libfshelp/set-options.c +++ b/libfshelp/set-options.c @@ -32,7 +32,7 @@ /* Invoke ARGP with data from DATA & LEN, in the standard way. */ error_t -fshelp_set_options (struct argp *argp, int flags, +fshelp_set_options (const struct argp *argp, int flags, const char *argz, size_t argz_len, void *input) { int argc = argz_count (argz, argz_len); |