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