summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-08-08 15:49:34 -0700
committerJeremy Allison <jra@samba.org>2012-08-09 12:07:32 -0700
commitc13887defc4c05b6b87f8f40ae0cf981a497f443 (patch)
tree45750aebc286cdbf0e9457c844517096e74d9163 /source3/lib
parent526e875cec15761099438e17df3f56bc2bd5b761 (diff)
downloadsamba-c13887defc4c05b6b87f8f40ae0cf981a497f443.tar.gz
samba-c13887defc4c05b6b87f8f40ae0cf981a497f443.tar.bz2
samba-c13887defc4c05b6b87f8f40ae0cf981a497f443.zip
Check error returns on strnorm().
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_str.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index b740de6659..446838a0b9 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -55,12 +55,13 @@ bool strnequal(const char *s1,const char *s2,size_t n)
Convert a string to "normal" form.
**/
-void strnorm(char *s, int case_default)
+bool strnorm(char *s, int case_default)
{
if (case_default == CASE_UPPER)
- (void)strupper_m(s); /* FIXME - return a bool here. */
+ return strupper_m(s);
else
strlower_m(s);
+ return true; /* FIXME - return strlower_m value later. */
}
/**