summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/wbinfo.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-06-04 03:14:56 +0000
committerTim Potter <tpot@samba.org>2001-06-04 03:14:56 +0000
commitb44d3f912c346e00f41a4ff59877adad3b9c3bb0 (patch)
tree70fbd5362105b1732cb90bb242084d2a5005f6f2 /source/nsswitch/wbinfo.c
parentcae6958f0872e0a0cc7647d14dd855caecd9114b (diff)
downloadsamba-b44d3f912c346e00f41a4ff59877adad3b9c3bb0.tar.gz
samba-b44d3f912c346e00f41a4ff59877adad3b9c3bb0.tar.xz
samba-b44d3f912c346e00f41a4ff59877adad3b9c3bb0.zip
Compile fix for solaris.
Fixed some compiler warnings.
Diffstat (limited to 'source/nsswitch/wbinfo.c')
-rw-r--r--source/nsswitch/wbinfo.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source/nsswitch/wbinfo.c b/source/nsswitch/wbinfo.c
index 1a51a5b6106..6c5c476dfc8 100644
--- a/source/nsswitch/wbinfo.c
+++ b/source/nsswitch/wbinfo.c
@@ -22,15 +22,13 @@
*/
#include "includes.h"
-#include "winbind_nss_config.h"
#include "winbindd.h"
#include "debug.h"
/* Prototypes from common.h - only needed #if TNG */
-enum nss_status winbindd_request(int req_type,
- struct winbindd_request *request,
- struct winbindd_response *response);
+int winbindd_request(int req_type, struct winbindd_request *request,
+ struct winbindd_response *response);
/* List groups a user is a member of */
@@ -53,7 +51,7 @@ static BOOL wbinfo_get_usergroups(char *user)
}
for (i = 0; i < response.data.num_entries; i++) {
- printf("%d\n", ((gid_t *)response.extra_data)[i]);
+ printf("%d\n", (int)((gid_t *)response.extra_data)[i]);
}
return True;
@@ -184,7 +182,7 @@ static BOOL wbinfo_sid_to_uid(char *sid)
/* Display response */
- printf("%d\n", response.data.uid);
+ printf("%d\n", (int)response.data.uid);
return True;
}
@@ -207,7 +205,7 @@ static BOOL wbinfo_sid_to_gid(char *sid)
/* Display response */
- printf("%d\n", response.data.gid);
+ printf("%d\n", (int)response.data.gid);
return True;
}