mirror of
git://git.suckless.org/ubase
synced 2025-02-03 03:51:37 +00:00
Fix indentation for mount(8)
No functional change intended.
This commit is contained in:
parent
4fb9eabf8e
commit
e91b3d9e71
10
mount.c
10
mount.c
@ -129,7 +129,11 @@ main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
for(i = 0; files[i]; i++) {
|
for(i = 0; files[i]; i++) {
|
||||||
if((fp = setmntent(files[i], "r"))) {
|
if(!(fp = setmntent(files[i], "r"))) {
|
||||||
|
if (strcmp(files[i], "/proc/mounts") != 0)
|
||||||
|
weprintf("setmntent %s:", files[i]);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
while((me = getmntent(fp))) {
|
while((me = getmntent(fp))) {
|
||||||
if(strcmp(me->mnt_dir, target) == 0 ||
|
if(strcmp(me->mnt_dir, target) == 0 ||
|
||||||
strcmp(me->mnt_fsname, target) == 0 ||
|
strcmp(me->mnt_fsname, target) == 0 ||
|
||||||
@ -148,10 +152,6 @@ main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
endmntent(fp);
|
endmntent(fp);
|
||||||
fp = NULL;
|
fp = NULL;
|
||||||
} else {
|
|
||||||
if (strcmp(files[i], "/proc/mounts") != 0)
|
|
||||||
weprintf("setmntent %s:", files[i]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(!source)
|
if(!source)
|
||||||
eprintf("can't find %s in /etc/fstab\n", target);
|
eprintf("can't find %s in /etc/fstab\n", target);
|
||||||
|
Loading…
Reference in New Issue
Block a user