Bug 699691 - Remove an unused argument from ino2name in pathsub.{c,h}. r=ted

This commit is contained in:
Jeff Walden 2011-11-04 18:36:40 -07:00
parent 2083d65f42
commit 8a84ed2439
4 changed files with 6 additions and 6 deletions

View File

@ -128,7 +128,7 @@ struct dirent *readdir(DIR *d)
#endif
char *
ino2name(ino_t ino, char *dir)
ino2name(ino_t ino)
{
DIR *dp;
struct dirent *ep;
@ -230,7 +230,7 @@ reversepath(char *inpath, char *name, int len, char *outpath)
if (strcmp(buf, "..") == 0) {
if (stat(".", &sb) < 0)
fail("cannot stat current directory");
name = ino2name(sb.st_ino, "..");
name = ino2name(sb.st_ino);
len = strlen(name);
cp -= len + 1;
strcpy(cp, name);

View File

@ -59,7 +59,7 @@ extern char *program;
extern void fail(char *format, ...);
extern char *getcomponent(char *path, char *name);
extern char *ino2name(ino_t ino, char *dir);
extern char *ino2name(ino_t ino);
extern void *xmalloc(size_t size);
extern char *xstrdup(char *s);
extern char *xbasename(char *path);

View File

@ -128,7 +128,7 @@ struct dirent *readdir(DIR *d)
#endif
char *
ino2name(ino_t ino, char *dir)
ino2name(ino_t ino)
{
DIR *dp;
struct dirent *ep;
@ -230,7 +230,7 @@ reversepath(char *inpath, char *name, int len, char *outpath)
if (strcmp(buf, "..") == 0) {
if (stat(".", &sb) < 0)
fail("cannot stat current directory");
name = ino2name(sb.st_ino, "..");
name = ino2name(sb.st_ino);
len = strlen(name);
cp -= len + 1;
strcpy(cp, name);

View File

@ -59,7 +59,7 @@ extern char *program;
extern void fail(char *format, ...);
extern char *getcomponent(char *path, char *name);
extern char *ino2name(ino_t ino, char *dir);
extern char *ino2name(ino_t ino);
extern void *xmalloc(size_t size);
extern char *xstrdup(char *s);
extern char *xbasename(char *path);