summaryrefslogtreecommitdiff
path: root/source/smbd/message.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-12-03 06:46:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:42 -0500
commitc65b752604f8f58abc4e7ae8514dc2c7f086271c (patch)
treeda9522d6228c320c6934373dde6e214df3caf8b3 /source/smbd/message.c
parent47a9f2c3d6039a07a6970ac181aeb2888d47a353 (diff)
downloadsamba-c65b752604f8f58abc4e7ae8514dc2c7f086271c.tar.gz
r12043: It's amazing the warnings you find when compiling on a 64-bit
box with gcc4 and -O6... Fix a bunch of C99 dereferencing type-punned pointer will break strict-aliasing rules errors. Also added prs_int32 (not uint32...) as it's needed in one place. Find places where prs_uint32 was being used to marshall/unmarshall a time_t (a big no no on 64-bits). More warning fixes to come. Thanks to Volker for nudging me to compile like this. Jeremy.
Diffstat (limited to 'source/smbd/message.c')
-rw-r--r--source/smbd/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/message.c b/source/smbd/message.c
index e975da3e153..fd28df0d801 100644
--- a/source/smbd/message.c
+++ b/source/smbd/message.c
@@ -65,7 +65,7 @@ static void msg_deliver(void)
* Incoming message is in DOS codepage format. Convert to UNIX.
*/
- if ((len = (int)convert_string_allocate(NULL,CH_DOS, CH_UNIX, msgbuf, msgpos, (void **) &msg, True)) < 0 || !msg) {
+ if ((len = (int)convert_string_allocate(NULL,CH_DOS, CH_UNIX, msgbuf, msgpos, (void **)(void *)&msg, True)) < 0 || !msg) {
DEBUG(3,("Conversion failed, delivering message in DOS codepage format\n"));
for (i = 0; i < msgpos;) {
if (msgbuf[i] == '\r' && i < (msgpos-1) && msgbuf[i+1] == '\n') {