aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/fsck.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-08-03 15:41:12 +0000
committerRob Landley <rob@landley.net>2006-08-03 15:41:12 +0000
commitd921b2ecc0d294ad4bf8c7458fc52a60c28727d2 (patch)
treee4a2769349867c441cf2983d83097bb66701a733 /e2fsprogs/fsck.c
parent6dce0b6fa79f2d4bb7e9d90e1fbc0f6beb25f855 (diff)
downloadbusybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.gz
busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.bz2
busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.zip
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
Diffstat (limited to 'e2fsprogs/fsck.c')
-rw-r--r--e2fsprogs/fsck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c
index 3290d00ef..afb6f0c7d 100644
--- a/e2fsprogs/fsck.c
+++ b/e2fsprogs/fsck.c
@@ -129,7 +129,7 @@ static char *base_device(const char *device)
129 int len; 129 int len;
130#endif 130#endif
131 131
132 cp = str = bb_xstrdup(device); 132 cp = str = xstrdup(device);
133 133
134 /* Skip over /dev/; if it's not present, give up. */ 134 /* Skip over /dev/; if it's not present, give up. */
135 if (strncmp(cp, "/dev/", 5) != 0) 135 if (strncmp(cp, "/dev/", 5) != 0)
@@ -544,7 +544,7 @@ static char *find_fsck(char *type)
544 tpl = (strncmp(type, "fsck.", 5) ? "%s/fsck.%s" : "%s/%s"); 544 tpl = (strncmp(type, "fsck.", 5) ? "%s/fsck.%s" : "%s/%s");
545 545
546 for(s = strtok(p, ":"); s; s = strtok(NULL, ":")) { 546 for(s = strtok(p, ":"); s; s = strtok(NULL, ":")) {
547 s = bb_xasprintf(tpl, s, type); 547 s = xasprintf(tpl, s, type);
548 if (stat(s, &st) == 0) break; 548 if (stat(s, &st) == 0) break;
549 free(s); 549 free(s);
550 } 550 }
@@ -583,7 +583,7 @@ static int execute(const char *type, const char *device, const char *mntpt,
583 return ENOMEM; 583 return ENOMEM;
584 memset(inst, 0, sizeof(struct fsck_instance)); 584 memset(inst, 0, sizeof(struct fsck_instance));
585 585
586 prog = bb_xasprintf("fsck.%s", type); 586 prog = xasprintf("fsck.%s", type);
587 argv[0] = prog; 587 argv[0] = prog;
588 argc = 1; 588 argc = 1;
589 589