aboutsummaryrefslogtreecommitdiff
path: root/util-linux/findfs.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-02-19 11:29:46 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-02-19 11:29:46 +0000
commit53ce7f0d7149beeed71e6dcc857d1cd4431cd550 (patch)
treed5895fdfa6b3c73632bbf8dca991fcb34001f946 /util-linux/findfs.c
parent431a7c9c53b69a7416091721da673bcff7c91a02 (diff)
downloadbusybox-w32-53ce7f0d7149beeed71e6dcc857d1cd4431cd550.tar.gz
busybox-w32-53ce7f0d7149beeed71e6dcc857d1cd4431cd550.tar.bz2
busybox-w32-53ce7f0d7149beeed71e6dcc857d1cd4431cd550.zip
findfs,mount: trivial build fix and whitespace fiexs
Diffstat (limited to 'util-linux/findfs.c')
-rw-r--r--util-linux/findfs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util-linux/findfs.c b/util-linux/findfs.c
index 4f036425c..5b64399ad 100644
--- a/util-linux/findfs.c
+++ b/util-linux/findfs.c
@@ -17,7 +17,7 @@ int findfs_main(int argc, char **argv)
17 char *tmp = NULL; 17 char *tmp = NULL;
18 18
19 if (argc != 2) 19 if (argc != 2)
20 bb_show_usage(); 20 bb_show_usage();
21 21
22 if (!strncmp(argv[1], "LABEL=", 6)) 22 if (!strncmp(argv[1], "LABEL=", 6))
23 tmp = get_devname_from_label(argv[1] + 6); 23 tmp = get_devname_from_label(argv[1] + 6);
@@ -25,14 +25,14 @@ int findfs_main(int argc, char **argv)
25 tmp = get_devname_from_uuid(argv[1] + 5); 25 tmp = get_devname_from_uuid(argv[1] + 5);
26 else if (!strncmp(argv[1], "/dev/", 5)) { 26 else if (!strncmp(argv[1], "/dev/", 5)) {
27 /* Just pass a device name right through. This might aid in some scripts 27 /* Just pass a device name right through. This might aid in some scripts
28 being able to call this unconditionally */ 28 being able to call this unconditionally */
29 tmp = argv[1]; 29 tmp = argv[1];
30 } else 30 } else
31 bb_show_usage(); 31 bb_show_usage();
32 32
33 if (tmp) { 33 if (tmp) {
34 puts(tmp); 34 puts(tmp);
35 return 0; 35 return 0;
36 } 36 }
37 return 1; 37 return 1;
38} 38}