svn commit: samba r5314 - in branches/SAMBA_3_0/source/nsswitch: .
vlendec at samba.org
vlendec at samba.org
Thu Feb 10 13:36:19 GMT 2005
Author: vlendec
Date: 2005-02-10 13:36:18 +0000 (Thu, 10 Feb 2005)
New Revision: 5314
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5314
Log:
Some const, and an uninitialized variable fix.
Volker
Modified:
branches/SAMBA_3_0/source/nsswitch/winbind_nss_linux.c
Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbind_nss_linux.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbind_nss_linux.c 2005-02-10 08:15:30 UTC (rev 5313)
+++ branches/SAMBA_3_0/source/nsswitch/winbind_nss_linux.c 2005-02-10 13:36:18 UTC (rev 5314)
@@ -62,7 +62,7 @@
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 @@
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;
More information about the samba-cvs
mailing list