summaryrefslogtreecommitdiffstats
path: root/text-utils/hexdump.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:25:34 +0100
committerKarel Zak2006-12-07 00:25:34 +0100
commitfd6b7a7ffc50400704beb41d5a23af5f9edb1eed (patch)
tree997c0ca2abc018369babd7da59bcd0afe492068e /text-utils/hexdump.c
parentImported from util-linux-2.5 tarball. (diff)
downloadkernel-qcow2-util-linux-fd6b7a7ffc50400704beb41d5a23af5f9edb1eed.tar.gz
kernel-qcow2-util-linux-fd6b7a7ffc50400704beb41d5a23af5f9edb1eed.tar.xz
kernel-qcow2-util-linux-fd6b7a7ffc50400704beb41d5a23af5f9edb1eed.zip
Imported from util-linux-2.7.1 tarball.
Diffstat (limited to 'text-utils/hexdump.c')
-rw-r--r--text-utils/hexdump.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/text-utils/hexdump.c b/text-utils/hexdump.c
index 4b282427a..7329d119c 100644
--- a/text-utils/hexdump.c
+++ b/text-utils/hexdump.c
@@ -50,11 +50,10 @@ int blocksize; /* data block size */
int exitval; /* final exit value */
int length = -1; /* max bytes to read */
-main(argc, argv)
+int main(argc, argv)
int argc;
char **argv;
{
- extern int errno;
register FS *tfs;
char *p, *rindex();
@@ -75,5 +74,5 @@ main(argc, argv)
(void)next(argv);
display();
- exit(exitval);
+ return exitval;
}