diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-27 22:42:10 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-27 22:42:10 +0000 |
commit | 8f11c24b74ff943e67a456c17c1ac139fa801c6d (patch) | |
tree | aebdeb2888c989b24e685ce4a30c8c54737dea8c /source3 | |
parent | 7d72ec3eda198b0fdbedd7ca227898e02a5319ad (diff) | |
download | samba-8f11c24b74ff943e67a456c17c1ac139fa801c6d.tar.gz samba-8f11c24b74ff943e67a456c17c1ac139fa801c6d.tar.bz2 samba-8f11c24b74ff943e67a456c17c1ac139fa801c6d.zip |
More gcc compile on solaris tidyups.
Jeremy.
(This used to be commit 956201c4fb6e604407911b9709574f0c24dcb84f)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/smbspool.c | 2 | ||||
-rw-r--r-- | source3/utils/smbcontrol.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c index b0077b73ba..5a78fe14fc 100644 --- a/source3/client/smbspool.c +++ b/source3/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/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index c5462ea1fb..09f0e3090b 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/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<DBGC_LAST;i++) if (debuglevel_class[i]) printf("%s:%d ", debug_classname_from_index(i), debuglevel_class[i]); @@ -112,9 +112,9 @@ void profilelevel_function(int msg_type, pid_t src, void *buf, size_t len) s = "count and time"; break; } - printf("Profiling %s on PID %d\n",s,src); + printf("Profiling %s on PID %u\n",s,(unsigned int)src); } else { - printf("Profiling not available on PID %d\n",src); + printf("Profiling not available on PID %u\n",(unsigned int)src); } got_level = True; } |