aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/util.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/util.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/util.c')
-rw-r--r--e2fsprogs/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/e2fsprogs/util.c b/e2fsprogs/util.c
index 6b72d0e0c..113ef9c8f 100644
--- a/e2fsprogs/util.c
+++ b/e2fsprogs/util.c
@@ -111,7 +111,7 @@ void parse_journal_opts(char **journal_device, int *journal_flags,
111{ 111{
112 char *buf, *token, *next, *p, *arg; 112 char *buf, *token, *next, *p, *arg;
113 int journal_usage = 0; 113 int journal_usage = 0;
114 buf = bb_xstrdup(opts); 114 buf = xstrdup(opts);
115 for (token = buf; token && *token; token = next) { 115 for (token = buf; token && *token; token = next) {
116 p = strchr(token, ','); 116 p = strchr(token, ',');
117 next = 0; 117 next = 0;
@@ -264,7 +264,7 @@ char *e2fs_set_sbin_path(void)
264 /* Update our PATH to include /sbin */ 264 /* Update our PATH to include /sbin */
265#define PATH_SET "/sbin" 265#define PATH_SET "/sbin"
266 if (oldpath) 266 if (oldpath)
267 oldpath = bb_xasprintf("%s:%s", PATH_SET, oldpath); 267 oldpath = xasprintf("%s:%s", PATH_SET, oldpath);
268 else 268 else
269 oldpath = PATH_SET; 269 oldpath = PATH_SET;
270 putenv (oldpath); 270 putenv (oldpath);