git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e699477
)
Squelch some warnings with more casty-foo.
author
Richard Sharpe
<sharpe@samba.org>
Thu, 13 Nov 2003 17:30:25 +0000
(17:30 +0000)
committer
Richard Sharpe
<sharpe@samba.org>
Thu, 13 Nov 2003 17:30:25 +0000
(17:30 +0000)
(This used to be commit
d165a49d860443741e57458b8a819c6d54824fc5
)
source3/lib/util_str.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_str.c
b/source3/lib/util_str.c
index b6025a362d3443fc128812fcd5d0830a9295abda..c244a6b34bf33bd8d94a270d75c25e7c1428fdfa 100644
(file)
--- a/
source3/lib/util_str.c
+++ b/
source3/lib/util_str.c
@@
-1194,7
+1194,7
@@
char *strchr_m(const char *src, char c)
for (s = src; *s && !(((unsigned char)s[0]) & 0x80); s++) {
if (*s == c)
- return s;
+ return
(char *)
s;
}
if (!*s)
@@
-1242,7
+1242,7
@@
char *strrchr_m(const char *s, char c)
break;
}
/* No - we have a match ! */
- return cp;
+ return
(char *)
cp;
}
} while (cp-- != s);
if (!got_mb)