1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-12 04:23:49 +03:00

r8520: fixed a pile of warnings from the build farm gcc -Wall output on

S390. This is an attempt to avoid the panic we're seeing in the
automatic builds.

The main fixes are:

 - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats

 - use of NULL format statements to perform dn searches.

 - assumption that sizeof() returns an int
This commit is contained in:
Andrew Tridgell
2005-07-17 09:20:52 +00:00
committed by Gerald (Jerry) Carter
parent f93bd0ced6
commit a58ea6b385
59 changed files with 142 additions and 116 deletions

View File

@@ -93,7 +93,8 @@ static void ping_message(struct messaging_context *msg, void *private,
uint32_t msg_type, uint32_t src, DATA_BLOB *data)
{
DEBUG(1,("INFO: Received PING message from server %u [%.*s]\n",
(uint_t)src, data->length, data->data?(const char *)data->data:""));
(uint_t)src, (int)data->length,
data->data?(const char *)data->data:""));
messaging_send(msg, src, MSG_PONG, data);
}
@@ -198,7 +199,7 @@ static void messaging_recv_handler(struct messaging_context *msg)
}
if (msize < sizeof(*rec->header)) {
DEBUG(0,("messaging: bad message of size %d\n", msize));
DEBUG(0,("messaging: bad message of size %d\n", (int)msize));
data_blob_free(&packet);
return;
}
@@ -216,7 +217,7 @@ static void messaging_recv_handler(struct messaging_context *msg)
if (msize != sizeof(*rec->header) + rec->header->length) {
DEBUG(0,("messaging: bad message header size %d should be %d\n",
rec->header->length, msize - sizeof(*rec->header)));
rec->header->length, (int)(msize - sizeof(*rec->header))));
talloc_free(rec);
return;
}