diff options
author | Erik Andersen | 2000-04-13 18:49:43 +0000 |
---|---|---|
committer | Erik Andersen | 2000-04-13 18:49:43 +0000 |
commit | 9cf3bfa7c1bf3ad959c61711c9a5ac1969149300 (patch) | |
tree | 61d03a8d473f2d253c80f5bb3acc13d488351250 /util-linux/freeramdisk.c | |
parent | b4f8606c05f8a256b515633e48df954ead1260ef (diff) | |
download | busybox-9cf3bfa7c1bf3ad959c61711c9a5ac1969149300.zip busybox-9cf3bfa7c1bf3ad959c61711c9a5ac1969149300.tar.gz |
More doc updates for BusyBox, with fixes to apps for bugs revealed
while trying to write docs . :-)
-Erik
Diffstat (limited to 'util-linux/freeramdisk.c')
-rw-r--r-- | util-linux/freeramdisk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c index 06937a7..9636dbd 100644 --- a/util-linux/freeramdisk.c +++ b/util-linux/freeramdisk.c @@ -34,7 +34,7 @@ static const char freeramdisk_usage[] = "freeramdisk DEVICE\n\n" - "Frees all memory used by the specified ramdisk.\n"; + "Free all memory used by the specified ramdisk.\n"; extern int freeramdisk_main(int argc, char **argv) @@ -42,7 +42,7 @@ freeramdisk_main(int argc, char **argv) char rname[256] = "/dev/ram"; int f; - if (argc > 2 || ( argv[1] && *argv[1] == '-')) { + if (argc < 2 || ( argv[1] && *argv[1] == '-')) { usage(freeramdisk_usage); } @@ -50,10 +50,10 @@ freeramdisk_main(int argc, char **argv) strcpy(rname, argv[1]); if ((f = open(rname, O_RDWR)) == -1) { - fatalError( "freeramdisk: cannot open %s: %s", rname, strerror(errno)); + fatalError( "freeramdisk: cannot open %s: %s\n", rname, strerror(errno)); } if (ioctl(f, BLKFLSBUF) < 0) { - fatalError( "freeramdisk: failed ioctl on %s: %s", rname, strerror(errno)); + fatalError( "freeramdisk: failed ioctl on %s: %s\n", rname, strerror(errno)); } /* Don't bother closing. Exit does * that, so we can save a few bytes */ |