svn commit: samba r16555 - in trunk/source/lib: .
jra at samba.org
jra at samba.org
Tue Jun 27 04:00:15 GMT 2006
Author: jra
Date: 2006-06-27 04:00:13 +0000 (Tue, 27 Jun 2006)
New Revision: 16555
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16555
Log:
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.
Modified:
trunk/source/lib/util_str.c
Changeset:
Modified: trunk/source/lib/util_str.c
===================================================================
--- trunk/source/lib/util_str.c 2006-06-27 03:59:34 UTC (rev 16554)
+++ trunk/source/lib/util_str.c 2006-06-27 04:00:13 UTC (rev 16555)
@@ -40,7 +40,7 @@
char *buff,
const char *sep,
size_t bufsize,
- int ltrim)
+ BOOL ltrim)
{
char *s;
char *pbuf;
@@ -57,8 +57,10 @@
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)
More information about the samba-cvs
mailing list