From d5be3b3279162005d9ebea2eda71d455e4c48739 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 21 Oct 2017 14:14:34 +0200 Subject: [PATCH] nsswitch: add some const to _nss_winbind_initgroups_dyn() prototype MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit BUG: https://bugzilla.samba.org/show_bug.cgi?id=13344 Signed-off-by: Stefan Metzmacher Reviewed-by: Björn Jacke --- nsswitch/winbind_nss_linux.c | 2 +- nsswitch/winbind_nss_linux.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nsswitch/winbind_nss_linux.c b/nsswitch/winbind_nss_linux.c index fc165a18573b..442c06e612ff 100644 --- a/nsswitch/winbind_nss_linux.c +++ b/nsswitch/winbind_nss_linux.c @@ -1024,7 +1024,7 @@ _nss_winbind_getgrgid_r(gid_t gid, /* Initialise supplementary groups */ NSS_STATUS -_nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start, +_nss_winbind_initgroups_dyn(const char *user, gid_t group, long int *start, long int *size, gid_t **groups, long int limit, int *errnop) { diff --git a/nsswitch/winbind_nss_linux.h b/nsswitch/winbind_nss_linux.h index 61e5261b2377..d18799ed1187 100644 --- a/nsswitch/winbind_nss_linux.h +++ b/nsswitch/winbind_nss_linux.h @@ -40,7 +40,7 @@ NSS_STATUS _nss_winbind_getgrnam_r(const char *name, struct group *result, char *buffer, size_t buflen, int *errnop); NSS_STATUS _nss_winbind_getgrgid_r(gid_t gid, struct group *result, char *buffer, size_t buflen, int *errnop); -NSS_STATUS _nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start, +NSS_STATUS _nss_winbind_initgroups_dyn(const char *user, gid_t group, long int *start, long int *size, gid_t **groups, long int limit, int *errnop); -- 2.34.1