diff options
| author | Kyle Evans <kevans@FreeBSD.org> | 2018-05-02 01:04:13 +0000 |
|---|---|---|
| committer | Kyle Evans <kevans@FreeBSD.org> | 2018-05-02 01:04:13 +0000 |
| commit | ad4e78b50a80361e164ee6885b6107692ba44463 (patch) | |
| tree | c9dda1dfdea52f8de1c28c6d6f5488018bae5075 /usr.bin/seq/seq.c | |
| parent | 4899b94bacfc5a0fdd8bfa05aacf2f3c8370d6e1 (diff) | |
Notes
Diffstat (limited to 'usr.bin/seq/seq.c')
| -rw-r--r-- | usr.bin/seq/seq.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/seq/seq.c b/usr.bin/seq/seq.c index 411cae218266..04f3c5c81f41 100644 --- a/usr.bin/seq/seq.c +++ b/usr.bin/seq/seq.c @@ -57,6 +57,15 @@ __FBSDID("$FreeBSD$"); static const char *decimal_point = "."; /* default */ static char default_format[] = { "%g" }; /* default */ +static const struct option long_opts[] = +{ + {"format", required_argument, NULL, 'f'}, + {"separator", required_argument, NULL, 's'}, + {"terminator", required_argument, NULL, 't'}, + {"equal-width", no_argument, NULL, 'w'}, + {NULL, no_argument, NULL, 0} +}; + /* Prototypes */ static double e_atof(const char *); @@ -68,15 +77,6 @@ static int valid_format(const char *); static char *generate_format(double, double, double, int, char); static char *unescape(char *); -static const struct option long_opts[] = -{ - {"format", required_argument, NULL, 'f'}, - {"separator", required_argument, NULL, 's'}, - {"terminator", required_argument, NULL, 't'}, - {"equal-width", no_argument, NULL, 'w'}, - {NULL, no_argument, NULL, 0} -}; - /* * The seq command will print out a numeric sequence from 1, the default, * to a user specified upper limit by 1. The lower bound and increment |
