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
@@ -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_=",
|
||||
|
Reference in New Issue
Block a user