[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 10/36: Fix gcc warning
From: |
Samuel Thibault |
Subject: |
[hurd] 10/36: Fix gcc warning |
Date: |
Tue, 24 Sep 2013 12:31:14 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit e5c4d8bf46d00831bdb8da92edfe996ada0110fb
Author: Samuel Thibault <address@hidden>
Date: Sat Sep 21 13:19:16 2013 +0200
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.
---
doc/hurd.texi | 2 +-
libfshelp/fshelp.h | 2 +-
libfshelp/set-options.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/hurd.texi b/doc/hurd.texi
index dbd5b45..ae47868 100644
--- a/doc/hurd.texi
+++ b/doc/hurd.texi
@@ -2619,7 +2619,7 @@ an RPC. If @var{len} is greater than zero, @var{buf} is
freed,
regardless of whether an error is returned or not.
@end deftypefun
address@hidden error_t fshelp_set_options (@w{struct argp address@hidden,
@w{int @var{flags}}, @w{char address@hidden, @w{size_t @var{argz_len}}, @w{void
address@hidden)
address@hidden error_t fshelp_set_options (@w{const struct argp address@hidden,
@w{int @var{flags}}, @w{char address@hidden, @w{size_t @var{argz_len}}, @w{void
address@hidden)
Invoke @code{argp_parse} in the standard way, with data from @var{argz}
and @var{argz_len}.
@end deftypefun
diff --git a/libfshelp/fshelp.h b/libfshelp/fshelp.h
index 43fbcd7..a7702ca 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 77cdba1..a627b84 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);
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (3085332 -> f351440), Samuel Thibault, 2013/09/24
- [hurd] 02/36: daemons: make sure / is writable before setting up pflocal, Samuel Thibault, 2013/09/24
- [hurd] 03/36: sutils: set up /dev/null using /bin/nullpriv in MAKEDEV.sh, Samuel Thibault, 2013/09/24
- [hurd] 01/36: Fix cursor size, Samuel Thibault, 2013/09/24
- [hurd] 04/36: hurd: add _reply suffix to the routines in process_reply.defs, Samuel Thibault, 2013/09/24
- [hurd] 05/36: hurd: add _reply suffix to the routines in fsys_reply.defs, Samuel Thibault, 2013/09/24
- [hurd] 06/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 10/36: Fix gcc warning,
Samuel Thibault <=
- [hurd] 09/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 20/36: Properly return error, Samuel Thibault, 2013/09/24
- [hurd] 19/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 15/36: Fix setting modem control lines, Samuel Thibault, 2013/09/24
- [hurd] 22/36: Rename SOCK_* into PFLOCAL_SOCK_*, Samuel Thibault, 2013/09/24
- [hurd] 13/36: Fix S_tioctl_tiocsetd returning errors, Samuel Thibault, 2013/09/24
- [hurd] 11/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 14/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 25/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 08/36: Fix ENOMEM handling in *_make_peropen, Samuel Thibault, 2013/09/24