Drop redundant declaration
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;
| ^~~~~~~
This commit is contained in:
committed by
Iker Pedrosa
parent
46d3058341
commit
43508ac476
@@ -89,7 +89,6 @@ static char tmsg[256];
|
||||
|
||||
extern char **newenvp;
|
||||
extern size_t newenvc;
|
||||
extern char **environ;
|
||||
|
||||
#ifndef ALARM
|
||||
#define ALARM 60
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
const char *Prog;
|
||||
|
||||
extern char **newenvp;
|
||||
extern char **environ;
|
||||
|
||||
#ifdef HAVE_SETGROUPS
|
||||
static int ngroups;
|
||||
|
||||
@@ -37,8 +37,6 @@ static struct passwd pwent;
|
||||
extern char **newenvp;
|
||||
extern size_t newenvc;
|
||||
|
||||
extern char **environ;
|
||||
|
||||
#ifndef ALARM
|
||||
#define ALARM 60
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user