summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-02-10 13:36:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:37 -0500
commit7e72aefc0f9fa8fb41d4949796330c493e919651 (patch)
tree009b974bd6c017563c560ba2d74ac211a2584d82 /source3/nsswitch
parent66ffe146080e7570f6499ec3e1317f59ae727de9 (diff)
downloadsamba-7e72aefc0f9fa8fb41d4949796330c493e919651.tar.gz
samba-7e72aefc0f9fa8fb41d4949796330c493e919651.tar.bz2
samba-7e72aefc0f9fa8fb41d4949796330c493e919651.zip
r5314: Some const, and an uninitialized variable fix.
Volker (This used to be commit b48a46162d7971be3d44d403a2d62247ef2321f7)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbind_nss_linux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/nsswitch/winbind_nss_linux.c b/source3/nsswitch/winbind_nss_linux.c
index 0ea5db74da..d8d4f93676 100644
--- a/source3/nsswitch/winbind_nss_linux.c
+++ b/source3/nsswitch/winbind_nss_linux.c
@@ -62,7 +62,7 @@ static char *get_static(char **buffer, size_t *buflen, size_t len)
lib/util_str.c as I really don't want to have to link in any other
objects if I can possibly avoid it. */
-BOOL next_token(char **ptr,char *buff,char *sep, size_t bufsize)
+BOOL next_token(char **ptr,char *buff,const char *sep, size_t bufsize)
{
char *s;
BOOL quoted;
@@ -976,11 +976,11 @@ _nss_winbind_sidtoname(const char *sid, char **name, char *buffer,
fprintf(stderr, "[%5d]: sidtoname %s\n", getpid(), sid);
#endif
+ ZERO_STRUCT(response);
+ ZERO_STRUCT(request);
+
/* we need to fetch the separator first time through */
if (!sep_char) {
- ZERO_STRUCT(response);
- ZERO_STRUCT(request);
-
ret = winbindd_request(WINBINDD_INFO, &request, &response);
if (ret != NSS_STATUS_SUCCESS) {
*errnop = errno = EINVAL;