s3: smbspool. Remove last use of 'extern char **environ;'.
authorJeremy Allison <jra@samba.org>
Wed, 13 Oct 2021 16:46:07 +0000 (09:46 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Oct 2021 19:51:59 +0000 (19:51 +0000)
This should come from lib/replace/replace.h to cope with
system (MacOSX etc.) differences.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14862

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Oct 14 19:51:59 UTC 2021 on sn-devel-184

source3/client/smbspool_krb5_wrapper.c

index 6a3e444f480d243d0c29d66f9769651c9941ee11..9abd1c6b868e30a797069705951db1fdc8a383dc 100644 (file)
@@ -319,10 +319,7 @@ create_env:
 #ifdef HAVE_CLEARENV
        clearenv();
 #else
-       {
-               extern char **environ;
-               environ = calloc(3, sizeof(*environ));
-       }
+       environ = calloc(3, sizeof(*environ));
 #endif
 
        CUPS_SMB_DEBUG("Setting KRB5CCNAME to '%s'", gen_cc);