aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs
diff options
context:
space:
mode:
authorGravatar "Vladimir N. Oleynik" <dzo@simtreas.ru>2005-10-12 15:34:25 +0000
committerGravatar "Vladimir N. Oleynik" <dzo@simtreas.ru>2005-10-12 15:34:25 +0000
commit6c35c7c97628cb81eb26c2a059b0dde2879d91aa (patch)
tree0da08a6d852fcb5d68bbe3a368460ed815b74923 /e2fsprogs
parent86a1073e0bfa608defbfaa43d94a537c5e700efe (diff)
downloadbusybox-6c35c7c97628cb81eb26c2a059b0dde2879d91aa.tar.gz
busybox-6c35c7c97628cb81eb26c2a059b0dde2879d91aa.tar.bz2
usage bb_dev_null
Diffstat (limited to 'e2fsprogs')
-rw-r--r--e2fsprogs/blkid/cache.c2
-rw-r--r--e2fsprogs/blkid/devname.c2
-rw-r--r--e2fsprogs/blkid/probe.c2
-rw-r--r--e2fsprogs/blkid/resolve.c2
-rw-r--r--e2fsprogs/blkid/save.c2
-rw-r--r--e2fsprogs/e2fsck.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/e2fsprogs/blkid/cache.c b/e2fsprogs/blkid/cache.c
index 88cc326cc..0dd1b6286 100644
--- a/e2fsprogs/blkid/cache.c
+++ b/e2fsprogs/blkid/cache.c
@@ -111,7 +111,7 @@ int main(int argc, char** argv)
argv[1] ? argv[1] : BLKID_CACHE_FILE);
exit(1);
}
- if ((ret = blkid_get_cache(&cache, "/dev/null")) != 0) {
+ if ((ret = blkid_get_cache(&cache, bb_dev_null)) != 0) {
fprintf(stderr, "%s: error creating cache (%d)\n",
argv[0], ret);
exit(1);
diff --git a/e2fsprogs/blkid/devname.c b/e2fsprogs/blkid/devname.c
index b3230212d..b5db29e30 100644
--- a/e2fsprogs/blkid/devname.c
+++ b/e2fsprogs/blkid/devname.c
@@ -355,7 +355,7 @@ int main(int argc, char **argv)
"Probe all devices and exit\n", argv[0]);
exit(1);
}
- if ((ret = blkid_get_cache(&cache, "/dev/null")) != 0) {
+ if ((ret = blkid_get_cache(&cache, bb_dev_null)) != 0) {
fprintf(stderr, "%s: error creating cache (%d)\n",
argv[0], ret);
exit(1);
diff --git a/e2fsprogs/blkid/probe.c b/e2fsprogs/blkid/probe.c
index 9008dc85c..1c30460f6 100644
--- a/e2fsprogs/blkid/probe.c
+++ b/e2fsprogs/blkid/probe.c
@@ -680,7 +680,7 @@ int main(int argc, char **argv)
"Probe a single device to determine type\n", argv[0]);
exit(1);
}
- if ((ret = blkid_get_cache(&cache, "/dev/null")) != 0) {
+ if ((ret = blkid_get_cache(&cache, bb_dev_null)) != 0) {
fprintf(stderr, "%s: error creating cache (%d)\n",
argv[0], ret);
exit(1);
diff --git a/e2fsprogs/blkid/resolve.c b/e2fsprogs/blkid/resolve.c
index 3dca74ff4..625782d44 100644
--- a/e2fsprogs/blkid/resolve.c
+++ b/e2fsprogs/blkid/resolve.c
@@ -121,7 +121,7 @@ int main(int argc, char **argv)
argv[0], argv[0]);
exit(1);
}
- if (blkid_get_cache(&cache, "/dev/null") < 0) {
+ if (blkid_get_cache(&cache, bb_dev_null) < 0) {
fprintf(stderr, "Couldn't get blkid cache\n");
exit(1);
}
diff --git a/e2fsprogs/blkid/save.c b/e2fsprogs/blkid/save.c
index 1830e459a..3fba2450a 100644
--- a/e2fsprogs/blkid/save.c
+++ b/e2fsprogs/blkid/save.c
@@ -166,7 +166,7 @@ int main(int argc, char **argv)
exit(1);
}
- if ((ret = blkid_get_cache(&cache, "/dev/null")) != 0) {
+ if ((ret = blkid_get_cache(&cache, bb_dev_null)) != 0) {
fprintf(stderr, "%s: error creating cache (%d)\n",
argv[0], ret);
exit(1);
diff --git a/e2fsprogs/e2fsck.c b/e2fsprogs/e2fsck.c
index fc7e740ac..42ee8abc4 100644
--- a/e2fsprogs/e2fsck.c
+++ b/e2fsprogs/e2fsck.c
@@ -15086,7 +15086,7 @@ static void reserve_stdio_fds(void)
int fd;
while (1) {
- fd = open("/dev/null", O_RDWR);
+ fd = open(bb_dev_null, O_RDWR);
if (fd > 2)
break;
if (fd < 0) {