]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Drop redundant declaration
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 24 Jan 2023 14:59:47 +0000 (15:59 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Wed, 25 Jan 2023 11:31:17 +0000 (12:31 +0100)
environ is exported in <unistd.h>.

    env.c:29:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
       29 | extern char **environ;
          |               ^~~~~~~
    login.c:92:15: warning: redundant redeclaration of ‘environ’ [-Wredundant-decls]
       92 | extern char **environ;
          |               ^~~~~~~
    sulogin.c:40:15: warning: redundant redeclaration of ‘environ’ [-Wredundant-decls]
       40 | extern char **environ;
          |               ^~~~~~~
    newgrp.c:32:15: warning: redundant redeclaration of ‘environ’ [-Wredundant-decls]
       32 | extern char **environ;
          |               ^~~~~~~

libmisc/env.c
src/login.c
src/newgrp.c
src/sulogin.c

index fc6dbceddb36783cb6dc39b32c3d5cf9c6f12c8a..c6ab6727610a20ee1c7309702c01cab6f4c5f220 100644 (file)
@@ -26,7 +26,6 @@
 #define NEWENVP_STEP 16
 size_t newenvc = 0;
 /*@null@*/char **newenvp = NULL;
-extern char **environ;
 
 static const char *const forbid[] = {
        "_RLD_=",
index c55f4de0a1da2bbc1b401d2c3b2671de58f39381..ea2b52ee4113c380fbc9b708be4fed2277748191 100644 (file)
@@ -89,7 +89,6 @@ static char tmsg[256];
 
 extern char **newenvp;
 extern size_t newenvc;
-extern char **environ;
 
 #ifndef        ALARM
 #define        ALARM   60
index ac18f0ca1c81eb49a7af1bb7703ab51c609127a5..d04dace11c1176f0c96d0b9c30a2fd34ae1cfd89 100644 (file)
@@ -29,7 +29,6 @@
 const char *Prog;
 
 extern char **newenvp;
-extern char **environ;
 
 #ifdef HAVE_SETGROUPS
 static int ngroups;
index ddb0d451f2a8c2df2c444f73f0fb3f247ed411e7..0d5b411dc663850c1af9f503d0290a23e2502664 100644 (file)
@@ -37,8 +37,6 @@ static struct passwd pwent;
 extern char **newenvp;
 extern size_t newenvc;
 
-extern char **environ;
-
 #ifndef        ALARM
 #define        ALARM   60
 #endif