svn commit: r333155 - head/usr.bin/seq

Kyle Evans kevans at FreeBSD.org
Wed May 2 01:04:14 UTC 2018


Author: kevans
Date: Wed May  2 01:04:13 2018
New Revision: 333155
URL: https://svnweb.freebsd.org/changeset/base/333155

Log:
  seq(1): Move long_opts up with globals

Modified:
  head/usr.bin/seq/seq.c

Modified: head/usr.bin/seq/seq.c
==============================================================================
--- head/usr.bin/seq/seq.c	Tue May  1 21:42:27 2018	(r333154)
+++ head/usr.bin/seq/seq.c	Wed May  2 01:04:13 2018	(r333155)
@@ -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 *);
@@ -67,15 +76,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,


More information about the svn-src-head mailing list