summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorEric Andersen2000-06-19 17:25:40 +0000
committerEric Andersen2000-06-19 17:25:40 +0000
commitb610615be9aedfac07d1e01f12575707fa3a227c (patch)
treeb94c0d6a506d1ef77f79df246a26d504c84b7110 /util-linux
parentdbb3019d0de410960feac649a0b9320ae245cca1 (diff)
downloadbusybox-b610615be9aedfac07d1e01f12575707fa3a227c.zip
busybox-b610615be9aedfac07d1e01f12575707fa3a227c.tar.gz
Updates to a number of apps to remove warnings/compile errors under libc5.
Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/dmesg.c3
-rw-r--r--util-linux/fbset.c2
-rw-r--r--util-linux/fdflush.c2
-rw-r--r--util-linux/freeramdisk.c2
-rw-r--r--util-linux/mkswap.c2
-rw-r--r--util-linux/more.c2
6 files changed, 6 insertions, 7 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index c4f4fb4..20846f7 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -128,6 +128,5 @@ int dmesg_main(int argc, char **argv)
exit(FALSE);
klogctl_error:
perror("klogctl");
- exit(FALSE);
-
+ return(FALSE);
}
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index de4c824..0a84dce 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -329,5 +329,5 @@ extern int fbset_main(int argc, char **argv)
/* Don't close the file, as exiting will take care of that */
/* close(fh); */
- exit (TRUE);
+ return (TRUE);
}
diff --git a/util-linux/fdflush.c b/util-linux/fdflush.c
index 4ec0a88..81f0472 100644
--- a/util-linux/fdflush.c
+++ b/util-linux/fdflush.c
@@ -56,5 +56,5 @@ extern int fdflush_main(int argc, char **argv)
perror(*argv);
exit(FALSE);
}
- exit(TRUE);
+ return(TRUE);
}
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c
index cabe566..fdac5ea 100644
--- a/util-linux/freeramdisk.c
+++ b/util-linux/freeramdisk.c
@@ -58,7 +58,7 @@ freeramdisk_main(int argc, char **argv)
/* Don't bother closing. Exit does
* that, so we can save a few bytes */
/* close(f); */
- exit(TRUE);
+ return(TRUE);
}
/*
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index 7d76916..fc37368 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -469,5 +469,5 @@ the -f option to force it.\n", program_name, device_name);
*/
if (fsync(DEV))
die("fsync failed");
- exit(TRUE);
+ return(TRUE);
}
diff --git a/util-linux/more.c b/util-linux/more.c
index 549a417..1310165 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -221,5 +221,5 @@ extern int more_main(int argc, char **argv)
#ifdef BB_FEATURE_USE_TERMIOS
gotsig(0);
#endif
- exit(TRUE);
+ return(TRUE);
}