lib/param Use strcasecmp_m rather than strcasecmp as this is banned in the s3 includes.h
authorAndrew Bartlett <abartlet@samba.org>
Sun, 9 Oct 2011 12:24:32 +0000 (23:24 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 11 Oct 2011 02:41:35 +0000 (13:41 +1100)
lib/param/util.c

index 472096f60d295ccdd08b071a7165de82d09406db..a385c4d0f34ae81bb93525fb7c07d529bad7e0c1 100644 (file)
@@ -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;
                }
        }