summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-02-23 16:22:43 -0800
committerJeremy Allison <jra@samba.org>2009-02-23 16:22:43 -0800
commitfaa1100d229aef56da5d48f5c19ec901e520f8ef (patch)
tree4f5bf875d05a91905ace8766c3d342770474eda9 /source3/nmbd
parentbcd6e5ec3315b14cedf7437a70c34d233ded082e (diff)
downloadsamba-faa1100d229aef56da5d48f5c19ec901e520f8ef.tar.gz
samba-faa1100d229aef56da5d48f5c19ec901e520f8ef.tar.bz2
samba-faa1100d229aef56da5d48f5c19ec901e520f8ef.zip
More warning fixes for Solaris.
Jeremy.
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index adefb7d94f..3279466602 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -412,18 +412,18 @@ static void msg_nmbd_send_packet(struct messaging_context *msg,
const struct sockaddr_storage *pss;
const struct in_addr *local_ip;
- DEBUG(10, ("Received send_packet from %d\n", procid_to_pid(&src)));
+ DEBUG(10, ("Received send_packet from %u\n", (unsigned int)procid_to_pid(&src)));
if (data->length != sizeof(struct packet_struct)) {
- DEBUG(2, ("Discarding invalid packet length from %d\n",
- procid_to_pid(&src)));
+ DEBUG(2, ("Discarding invalid packet length from %u\n",
+ (unsigned int)procid_to_pid(&src)));
return;
}
if ((p->packet_type != NMB_PACKET) &&
(p->packet_type != DGRAM_PACKET)) {
- DEBUG(2, ("Discarding invalid packet type from %d: %d\n",
- procid_to_pid(&src), p->packet_type));
+ DEBUG(2, ("Discarding invalid packet type from %u: %d\n",
+ (unsigned int)procid_to_pid(&src), p->packet_type));
return;
}
@@ -431,8 +431,8 @@ static void msg_nmbd_send_packet(struct messaging_context *msg,
pss = iface_ip((struct sockaddr *)&ss);
if (pss == NULL) {
- DEBUG(2, ("Could not find ip for packet from %d\n",
- procid_to_pid(&src)));
+ DEBUG(2, ("Could not find ip for packet from %u\n",
+ (unsigned int)procid_to_pid(&src)));
return;
}