git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f2741b
)
lib/param Use strcasecmp_m rather than strcasecmp as this is banned in the s3 includes.h
author
Andrew Bartlett
<abartlet@samba.org>
Sun, 9 Oct 2011 12:24:32 +0000
(23:24 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 11 Oct 2011 02:41:35 +0000
(13:41 +1100)
lib/param/util.c
patch
|
blob
|
history
diff --git
a/lib/param/util.c
b/lib/param/util.c
index 472096f60d295ccdd08b071a7165de82d09406db..a385c4d0f34ae81bb93525fb7c07d529bad7e0c1 100644
(file)
--- a/
lib/param/util.c
+++ b/
lib/param/util.c
@@
-57,13
+57,13
@@
bool lpcfg_is_myname(struct loadparm_context *lp_ctx, const char *name)
const char **aliases;
int i;
- if (strcasecmp(name, lpcfg_netbios_name(lp_ctx)) == 0) {
+ if (strcasecmp
_m
(name, lpcfg_netbios_name(lp_ctx)) == 0) {
return true;
}
aliases = lpcfg_netbios_aliases(lp_ctx);
for (i=0; aliases && aliases[i]; i++) {
- if (strcasecmp(name, aliases[i]) == 0) {
+ if (strcasecmp
_m
(name, aliases[i]) == 0) {
return true;
}
}