ape: remove unused variables
This commit is contained in:
parent
517c0feaca
commit
36287edc88
10 changed files with 4 additions and 13 deletions
|
@ -49,7 +49,7 @@ static int copynotehandler(void *, char *);
|
|||
int
|
||||
_startbuf(int fd)
|
||||
{
|
||||
int i, pid, sid;
|
||||
int i, pid;
|
||||
Fdinfo *f;
|
||||
Muxbuf *b;
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@ void
|
|||
_envsetup(void)
|
||||
{
|
||||
int dfd;
|
||||
struct dirent *de;
|
||||
int n, nd, m, i, j, f;
|
||||
int psize, cnt;
|
||||
int nohandle;
|
||||
|
@ -107,7 +106,7 @@ done:
|
|||
static void
|
||||
sigsetup(char *s, char *se)
|
||||
{
|
||||
int i, sig;
|
||||
int sig;
|
||||
char *e;
|
||||
|
||||
while(s < se){
|
||||
|
|
|
@ -19,7 +19,6 @@ _exit(int status)
|
|||
void
|
||||
_finish(int status, char *term)
|
||||
{
|
||||
int i, nalive;
|
||||
char *cp;
|
||||
|
||||
if(_finishing)
|
||||
|
|
|
@ -97,11 +97,9 @@ readprocfdinit(void)
|
|||
static void
|
||||
sfdinit(int usedproc, char *s, char *se)
|
||||
{
|
||||
int i;
|
||||
Fdinfo *fi;
|
||||
unsigned long fd, fl, ofl;
|
||||
char *e;
|
||||
struct stat sbuf;
|
||||
|
||||
while(s < se){
|
||||
fd = strtoul(s, &e, 10);
|
||||
|
|
|
@ -148,7 +148,7 @@ localtime_r(const time_t *timp, struct tm *result)
|
|||
struct tm *ct;
|
||||
time_t t, tim;
|
||||
long *p;
|
||||
int i, dlflag;
|
||||
int dlflag;
|
||||
|
||||
tim = *timp;
|
||||
if(tz.stname[0] == 0)
|
||||
|
|
|
@ -11,8 +11,6 @@ dup(int oldd)
|
|||
int
|
||||
dup2(int oldd, int newd)
|
||||
{
|
||||
int n;
|
||||
|
||||
if(newd < 0 || newd >= OPEN_MAX){
|
||||
errno = EBADF;
|
||||
return -1;
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
int
|
||||
_isatty(int fd)
|
||||
{
|
||||
int t;
|
||||
char buf[64];
|
||||
|
||||
if(_FD2PATH(fd, buf, sizeof buf) < 0)
|
||||
|
|
|
@ -18,7 +18,6 @@ open(const char *path, int flags, ...)
|
|||
int mode;
|
||||
Fdinfo *fi;
|
||||
va_list va;
|
||||
struct stat sbuf;
|
||||
|
||||
f = flags&O_ACCMODE;
|
||||
if(flags&O_CREAT){
|
||||
|
|
|
@ -84,7 +84,7 @@ rewinddir(DIR *d)
|
|||
struct dirent *
|
||||
readdir(DIR *d)
|
||||
{
|
||||
int i, n;
|
||||
int i;
|
||||
struct dirent *dr;
|
||||
Dir *dirs;
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ rename(const char *from, const char *to)
|
|||
int n, i;
|
||||
char *f, *t;
|
||||
Dir *d, nd;
|
||||
long mode;
|
||||
|
||||
if(access(to, 0) >= 0){
|
||||
if(_REMOVE(to) < 0){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue