From: Jeremy Allison Date: Fri, 27 Apr 2001 22:42:10 +0000 (+0000) Subject: More gcc compile on solaris tidyups. X-Git-Tag: samba-2.2.5pre1~2087^2~151 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=956201c4fb6e604407911b9709574f0c24dcb84f;p=thirdparty%2Fsamba.git More gcc compile on solaris tidyups. Jeremy. --- diff --git a/source/client/smbspool.c b/source/client/smbspool.c index b0077b73bae..5a78fe14fc6 100644 --- a/source/client/smbspool.c +++ b/source/client/smbspool.c @@ -358,7 +358,7 @@ smb_print(struct cli_state *cli, /* I - SMB connection */ */ for (ptr = title; *ptr; ptr ++) - if (!isalnum(*ptr) && !isspace(*ptr)) + if (!isalnum((int)*ptr) && !isspace((int)*ptr)) *ptr = '_'; /* diff --git a/source/utils/smbcontrol.c b/source/utils/smbcontrol.c index c5462ea1fb7..09f0e3090b4 100644 --- a/source/utils/smbcontrol.c +++ b/source/utils/smbcontrol.c @@ -69,7 +69,7 @@ a useful function for testing the message system void pong_function(int msg_type, pid_t src, void *buf, size_t len) { pong_count++; - printf("PONG from PID %d\n",src); + printf("PONG from PID %u\n",(unsigned int)src); } /**************************************************************************** @@ -82,7 +82,7 @@ void debuglevel_function(int msg_type, pid_t src, void *buf, size_t len) memcpy(debuglevel_class, buf, len); - printf("Current debug level of PID %d is %d ",src, debuglevel_class[0]); + printf("Current debug level of PID %u is %d ",(unsigned int)src, debuglevel_class[0]); for (i=1;i