]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
ext_lm_group_acl: portability fixes for MinGW
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 24 Jul 2014 08:39:38 +0000 (01:39 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 24 Jul 2014 08:39:38 +0000 (01:39 -0700)
helpers/external_acl/LM_group/Makefile.am
helpers/external_acl/LM_group/ext_lm_group_acl.cc

index aba50451120189c94c13f6dbe05d7e9ddfac6699..1bc27ed71bdb332720089566c971ff168553b1be 100644 (file)
@@ -4,6 +4,7 @@ libexec_PROGRAMS = ext_lm_group_acl
 ext_lm_group_acl_SOURCES = ext_lm_group_acl.cc
 
 LDADD = \
+       $(top_builddir)/lib/libmiscencoding.la \
        $(COMPAT_LIB) \
        -lnetapi32 \
        -ladvapi32 \
index b0c4a64ca4c027016f1419b5f8dd877aa3868953..c5706c3a6ff05568b26e214cceeb4ef6ad90154e 100644 (file)
@@ -97,7 +97,7 @@ int _wcsicmp(const wchar_t *, const wchar_t *);
 
 int use_global = 0;
 int use_PDC_only = 0;
-char *program_name;
+const char *program_name;
 pid_t mypid;
 char *machinedomain;
 int use_case_insensitive_compare = 0;
@@ -541,12 +541,15 @@ main(int argc, char *argv[])
     }
     debug("External ACL win32 group helper build " __DATE__ ", " __TIME__
           " starting up...\n");
-    if (use_global)
+    if (use_global) {
         debug("Domain Global group mode enabled using '%s' as default domain.\n", DefaultDomain);
-    if (use_case_insensitive_compare)
+    }
+    if (use_case_insensitive_compare) {
         debug("Warning: running in case insensitive mode !!!\n");
-    if (use_PDC_only)
+    }
+    if (use_PDC_only) {
         debug("Warning: using only PDCs for group validation !!!\n");
+    }
 
     /* Main Loop */
     while (fgets(buf, HELPER_INPUT_BUFFER, stdin)) {