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:
parent
46d3058341
commit
43508ac476
@ -26,7 +26,6 @@
|
|||||||
#define NEWENVP_STEP 16
|
#define NEWENVP_STEP 16
|
||||||
size_t newenvc = 0;
|
size_t newenvc = 0;
|
||||||
/*@null@*/char **newenvp = NULL;
|
/*@null@*/char **newenvp = NULL;
|
||||||
extern char **environ;
|
|
||||||
|
|
||||||
static const char *const forbid[] = {
|
static const char *const forbid[] = {
|
||||||
"_RLD_=",
|
"_RLD_=",
|
||||||
|
@ -89,7 +89,6 @@ static char tmsg[256];
|
|||||||
|
|
||||||
extern char **newenvp;
|
extern char **newenvp;
|
||||||
extern size_t newenvc;
|
extern size_t newenvc;
|
||||||
extern char **environ;
|
|
||||||
|
|
||||||
#ifndef ALARM
|
#ifndef ALARM
|
||||||
#define ALARM 60
|
#define ALARM 60
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
const char *Prog;
|
const char *Prog;
|
||||||
|
|
||||||
extern char **newenvp;
|
extern char **newenvp;
|
||||||
extern char **environ;
|
|
||||||
|
|
||||||
#ifdef HAVE_SETGROUPS
|
#ifdef HAVE_SETGROUPS
|
||||||
static int ngroups;
|
static int ngroups;
|
||||||
|
@ -37,8 +37,6 @@ static struct passwd pwent;
|
|||||||
extern char **newenvp;
|
extern char **newenvp;
|
||||||
extern size_t newenvc;
|
extern size_t newenvc;
|
||||||
|
|
||||||
extern char **environ;
|
|
||||||
|
|
||||||
#ifndef ALARM
|
#ifndef ALARM
|
||||||
#define ALARM 60
|
#define ALARM 60
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user