usage bb_dev_null

This commit is contained in:
"Vladimir N. Oleynik"
2005-10-12 15:34:25 +00:00
parent 86a1073e0b
commit 6c35c7c976
12 changed files with 14 additions and 15 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);
}

View File

@@ -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);