From 1e5af9ecd0567e0afbe29ee3d69d4537628a3d63 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 9 Oct 2011 23:24:32 +1100 Subject: lib/param Use strcasecmp_m rather than strcasecmp as this is banned in the s3 includes.h --- lib/param/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/param') diff --git a/lib/param/util.c b/lib/param/util.c index 472096f60d..a385c4d0f3 100644 --- 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; } } -- cgit