summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2000-09-26 18:48:13 +0000
committerHerb Lewis <herb@samba.org>2000-09-26 18:48:13 +0000
commit7489aa1ff35cb1b9d154948f5f9f971ad0346e59 (patch)
tree6fbda56c8859124e6578133c29e0258bd9b7954d /source3
parentad81f44cdb77aa952db6f11b6e1e12ded616302d (diff)
downloadsamba-7489aa1ff35cb1b9d154948f5f9f971ad0346e59.tar.gz
samba-7489aa1ff35cb1b9d154948f5f9f971ad0346e59.tar.bz2
samba-7489aa1ff35cb1b9d154948f5f9f971ad0346e59.zip
fix for IRIX compiler error messages
(This used to be commit f2549db1ce6527c3e378e9f9210c70be5de93762)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/messages.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index 4153c21c23..2409e5b1e8 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -160,7 +160,7 @@ BOOL message_send_pid(pid_t pid, int msg_type, void *buf, size_t len)
if (!p) goto failed;
memcpy(p, &rec, sizeof(rec));
- if (len > 0) memcpy(p+sizeof(rec), buf, len);
+ if (len > 0) memcpy((void *)((unsigned)p+sizeof(rec)), buf, len);
dbuf.dptr = p;
dbuf.dsize = len + sizeof(rec);
@@ -174,8 +174,8 @@ BOOL message_send_pid(pid_t pid, int msg_type, void *buf, size_t len)
if (!p) goto failed;
memcpy(p, dbuf.dptr, dbuf.dsize);
- memcpy(p+dbuf.dsize, &rec, sizeof(rec));
- if (len > 0) memcpy(p+dbuf.dsize+sizeof(rec), buf, len);
+ memcpy((void *)((unsigned)p+dbuf.dsize), &rec, sizeof(rec));
+ if (len > 0) memcpy((void *)((unsigned)p+dbuf.dsize+sizeof(rec)), buf, len);
free(dbuf.dptr);
dbuf.dptr = p;