[hackers] [sbase] Reorder variables in seq(1) || FRIGN

From: <git_AT_suckless.org>
Date: Fri, 20 Mar 2015 21:22:28 +0100 (CET)

commit 79b2275545ca0ac2f2544eeb942fd1704729aa8c
Author: FRIGN <dev_AT_frign.de>
Date: Fri Mar 20 16:37:29 2015 +0100

    Reorder variables in seq(1)

diff --git a/seq.c b/seq.c
index 9e1f87b..5a306ea 100644
--- a/seq.c
+++ b/seq.c
_AT_@ -8,8 +8,8 @@
 static int
 digitsleft(const char *d)
 {
- char *exp;
         int shift;
+ char *exp;
 
         if (*d == '+')
                 d++;
_AT_@ -22,8 +22,8 @@ digitsleft(const char *d)
 static int
 digitsright(const char *d)
 {
- char *exp;
         int shift, after;
+ char *exp;
 
         exp = strpbrk(d, "eE");
         shift = exp ? estrtonum(&exp[1], INT_MIN, INT_MAX) : 0;
_AT_@ -79,11 +79,10 @@ usage(void)
 int
 main(int argc, char *argv[])
 {
- const char *starts = "1", *steps = "1", *ends = "1", *sep = "\n";
- int wflag = 0;
- char *tmp, ftmp[BUFSIZ], *fmt = ftmp;
         double start, step, end, out, dir;
- int left, right;
+ int wflag = 0, left, right;
+ char *tmp, ftmp[BUFSIZ], *fmt = ftmp;
+ const char *starts = "1", *steps = "1", *ends = "1", *sep = "\n";
 
         ARGBEGIN {
         case 'f':
Received on Fri Mar 20 2015 - 21:22:28 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 20 2015 - 21:24:14 CET