1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

r16554: Sorry, just had to change this. Don't use int when

you're passing a BOOL parameter, don't use "clever"
code in while statement - make things easier and
clearer to understand when triggering something
with an if.
Jeremy.
(This used to be commit b1fc2d8b99e0402c0e8fe954d9f9563dc4dc2812)
This commit is contained in:
Jeremy Allison 2006-06-27 03:59:34 +00:00 committed by Gerald (Jerry) Carter
parent 9220a7bb7b
commit b000e8f083

View File

@ -40,7 +40,7 @@ static BOOL next_token_internal(const char **ptr,
char *buff,
const char *sep,
size_t bufsize,
int ltrim)
BOOL ltrim)
{
char *s;
char *pbuf;
@ -57,8 +57,10 @@ static BOOL next_token_internal(const char **ptr,
sep = " \t\n\r";
/* find the first non sep char, if left-trimming is requested */
while (ltrim && *s && strchr_m(sep,*s))
s++;
if (ltrim) {
while (*s && strchr_m(sep,*s))
s++;
}
/* nothing left? */
if (! *s)