summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-03-18 22:47:17 +0000
committerAndrew Tridgell <tridge@samba.org>2001-03-18 22:47:17 +0000
commitcf313f6232e02577b0d79cc90e74cf8f20a81896 (patch)
treef02b40ce37b8f9229c880369b147e2880ff37446 /source3
parent9c4927d3624c594ea6647d946540ce286a948805 (diff)
downloadsamba-cf313f6232e02577b0d79cc90e74cf8f20a81896.tar.gz
samba-cf313f6232e02577b0d79cc90e74cf8f20a81896.tar.bz2
samba-cf313f6232e02577b0d79cc90e74cf8f20a81896.zip
fixed some compilation errors with IRIX cc
(This used to be commit e430ded56e9c15a462a171e6350f1eddefa8dd11)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clistr.c4
-rw-r--r--source3/smbd/srvstr.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/clistr.c b/source3/libsmb/clistr.c
index 93361053e0..13bf1f05b7 100644
--- a/source3/libsmb/clistr.c
+++ b/source3/libsmb/clistr.c
@@ -47,7 +47,7 @@ int clistr_push(struct cli_state *cli, void *dest, const char *src, int dest_len
if (!(flags & STR_ASCII) && clistr_align(cli->outbuf, dest)) {
*(char *)dest = 0;
- dest++;
+ dest = (void *)((char *)dest + 1);
dest_len--;
len++;
}
@@ -96,7 +96,7 @@ int clistr_pull(struct cli_state *cli, char *dest, const void *src, int dest_len
}
if (!(flags & STR_ASCII) && clistr_align(cli->inbuf, src)) {
- src++;
+ src = (void *)((char *)src + 1);
if (src_len > 0) src_len--;
}
diff --git a/source3/smbd/srvstr.c b/source3/smbd/srvstr.c
index 241a74f02f..55cbada10c 100644
--- a/source3/smbd/srvstr.c
+++ b/source3/smbd/srvstr.c
@@ -49,7 +49,7 @@ int srvstr_push(void *outbuf, void *dest, const char *src, int dest_len, int fla
if (!(flags & STR_ASCII) && srvstr_align(outbuf, PTR_DIFF(dest, outbuf))) {
*(char *)dest = 0;
- dest++;
+ dest = (void *)((char *)dest + 1);
dest_len--;
len++;
}
@@ -98,7 +98,7 @@ int srvstr_pull(void *inbuf, char *dest, const void *src, int dest_len, int src_
}
if (!(flags & STR_ASCII) && srvstr_align(inbuf, PTR_DIFF(src, inbuf))) {
- src++;
+ src = (void *)((char *)src + 1);
if (src_len > 0) src_len--;
}