util-linux/sys-utils
Dave Reisner b16b56ec55 mountpoint: refactor exit path
There's only one condition for which we declare success, but many for
failure. Initialize rc as failure and set to success on this single
condition. In all cases, jump to a label to exit instead of exiting
immediately. This will be used later on to ease cleanup of any heap
allocations.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-11 11:03:45 +02:00
..
.gitignore chcpu: new tool 2011-08-22 13:56:31 +02:00
Makefile.am Merge branch 'manuals' of https://github.com/kerolasa/lelux-utiliteetit 2011-10-10 13:27:40 +02:00
arch.1 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
arch.c arch: minor changes to usage() 2011-09-27 13:25:53 +02:00
chcpu.8 docs: chcpu and readprofile are sysadmin utils 2011-09-29 22:52:34 +02:00
chcpu.c misc: use %m in format string instead of %s and strerror(errno) 2011-09-27 15:46:07 +02:00
ctrlaltdel.8 docs: mention long options in ctrlaltdel.8 2011-09-17 14:25:20 +02:00
ctrlaltdel.c ctrlaltdel: minor changes to usage() 2011-09-27 13:26:06 +02:00
cyclades.h Imported from util-linux-2.12i tarball. 2006-12-07 00:26:22 +01:00
cytune.8 docs: mention long options in cytune.8 2011-09-29 22:45:27 +02:00
cytune.c cytune: fix printf type warning 2011-09-29 22:45:27 +02:00
dmesg.1 dmesg: add --file option 2011-09-08 19:40:34 +02:00
dmesg.c dmesg: add --file option 2011-09-08 19:40:34 +02:00
fallocate.1 docs: align fallocate.1 with howto-man-page.txt 2011-09-29 22:06:12 +02:00
fallocate.c fallocate: cleanup usage() 2011-08-16 13:04:08 +02:00
flock.1 docs: restructure flock.1 manual page 2011-09-29 22:45:27 +02:00
flock.c flock: simplify strtotimeval() 2011-09-29 22:45:27 +02:00
fsfreeze.8 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
fsfreeze.c fsfreeze: cleanup usage() 2011-08-16 13:12:08 +02:00
fstrim.8 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
fstrim.c fstrim: cleanup usage() 2011-08-16 13:14:02 +02:00
ipcmk.1 docs: add long options to ipcmk.1 man page 2011-09-17 14:25:20 +02:00
ipcmk.c build-sys: fixes to USAGE_* macros 2011-09-17 15:07:52 +02:00
ipcrm.1 ipcrm: add --all option 2011-09-17 15:07:35 +02:00
ipcrm.c ipcrm: fix wrong subject in error messages for -m, -q, -s id options 2011-09-29 00:25:34 +02:00
ipcs.1 docs: add long options to ipcs.1 man page 2011-09-17 14:25:20 +02:00
ipcs.c ipcs: minor changes to usage() 2011-09-27 13:26:26 +02:00
ldattach.8 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
ldattach.c ldattach: cleanup usage() 2011-08-16 13:30:26 +02:00
lp.h Imported from util-linux-2.9v tarball. 2006-12-07 00:25:39 +01:00
lscpu.1 lscpu: add --offline option 2011-09-27 14:48:33 +02:00
lscpu.c lscpu: stricter command line parsing 2011-09-27 14:48:33 +02:00
mountpoint.1 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
mountpoint.c mountpoint: refactor exit path 2011-10-11 11:03:45 +02:00
pivot_root.8 docs: mention long options in pivot_root.8 2011-09-17 14:25:20 +02:00
pivot_root.c pivot_root: minor changes to usage() 2011-09-27 13:26:45 +02:00
readprofile.8 docs: chcpu and readprofile are sysadmin utils 2011-09-29 22:52:34 +02:00
readprofile.c misc: use %m in format string instead of %s and strerror(errno) 2011-09-27 15:46:07 +02:00
renice.1 docs: align renice.1 with howto-man-page.txt 2011-10-03 20:32:36 +02:00
renice.c renice: cleanup usage() 2011-08-16 13:20:54 +02:00
rtcwake.8 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
rtcwake.c rtcwake: cleanup usage() 2011-08-16 13:23:30 +02:00
setarch.8 docs: add --version to setarch.8 2011-09-17 14:25:20 +02:00
setarch.c setarch: minor changes to usage() 2011-09-27 13:26:59 +02:00
setsid.1 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
setsid.c Imported from util-linux-2.11b tarball. 2006-12-07 00:25:46 +01:00
switch_root.8 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
switch_root.c build-sys: provide alternatives for err, errx, warn and warnx 2011-02-14 17:45:24 +01:00
tunelp.8 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
tunelp.c tunelp: fix compiler warnings [-Wsign-compare] 2011-08-01 13:14:21 +02:00
unshare.1 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
unshare.c unshare: cleanup usage() 2011-08-16 13:16:40 +02:00