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:
parent
e1487eb2c4
commit
e430ded56e
@ -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--;
|
||||
}
|
||||
|
||||
|
@ -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--;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user