diff options
author | Karel Zak | 2006-12-07 00:25:34 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:25:34 +0100 |
commit | fd6b7a7ffc50400704beb41d5a23af5f9edb1eed (patch) | |
tree | 997c0ca2abc018369babd7da59bcd0afe492068e /text-utils/odsyntax.c | |
parent | Imported from util-linux-2.5 tarball. (diff) | |
download | kernel-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/odsyntax.c')
-rw-r--r-- | text-utils/odsyntax.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/text-utils/odsyntax.c b/text-utils/odsyntax.c index 2dd5a2a26..120928bf3 100644 --- a/text-utils/odsyntax.c +++ b/text-utils/odsyntax.c @@ -38,18 +38,20 @@ static char sccsid[] = "@(#)odsyntax.c 5.4 (Berkeley) 3/8/91"; #include <sys/types.h> #include <stdlib.h> #include <stdio.h> +#include <ctype.h> /* for isdigit() */ +#include <unistd.h> /* for getopt() */ #include "hexdump.h" +static void odoffset(int, char ***); + int deprecated; -oldsyntax(argc, argvp) - int argc; - char ***argvp; +void +oldsyntax(int argc, char ***argvp) { extern enum _vflag vflag; extern FS *fshead; - extern char *optarg; - extern int length, optind; + extern int optind; int ch; char **argv; static void odprecede(); @@ -147,11 +149,10 @@ oldsyntax(argc, argvp) } #define ishexdigit(c) \ - (c >= '0' && c <= '9' || c >= 'a' && c <= 'f' || c >= 'A' && c <= 'F') + ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F')) -odoffset(argc, argvp) - int argc; - char ***argvp; +static void +odoffset(int argc, char ***argvp) { extern off_t skip; register char *num, *p; |