1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

fixed some compilation errors with IRIX cc

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent e1487eb2c4
commit e430ded56e
2 changed files with 4 additions and 4 deletions

View File

@ -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--;
}

View File

@ -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--;
}