No need to have ':' in perror()

It gets added automatically.
This commit is contained in:
sin 2014-03-07 14:00:44 +00:00
parent e6375453b1
commit f7a4849ded

View File

@ -46,7 +46,7 @@ main(int argc, char *argv[])
eprintf("setmntent %s:", "/etc/fstab"); eprintf("setmntent %s:", "/etc/fstab");
while ((me = getmntent(fp))) { while ((me = getmntent(fp))) {
if (umount2(me->mnt_dir, flags) < 0) { if (umount2(me->mnt_dir, flags) < 0) {
perror("umount2:"); perror("umount2");
ret = EXIT_FAILURE; ret = EXIT_FAILURE;
} }
} }
@ -56,7 +56,7 @@ main(int argc, char *argv[])
for (i = 0; i < argc; i++) { for (i = 0; i < argc; i++) {
if (umount2(argv[i], flags) < 0) { if (umount2(argv[i], flags) < 0) {
perror("umount2:"); perror("umount2");
ret = EXIT_FAILURE; ret = EXIT_FAILURE;
} }
} }