Rewrote late declations, which are part of C99, but not C89.
authormarkus schnalke <meillo@marmaro.de>
Thu, 22 Mar 2012 14:26:19 +0000 (15:26 +0100)
committermarkus schnalke <meillo@marmaro.de>
Thu, 22 Mar 2012 14:26:19 +0000 (15:26 +0100)
sbr/path.c
uip/repl.c

index e5576b8..27af5b3 100644 (file)
@@ -234,12 +234,13 @@ char *
 expanddir(char *d)
 {
        static char buf[BUFSIZ];
+       int len;
 
        if (*d == '/') {
                strcpy(buf, d);
        } else {
                getcwd(buf, sizeof buf);
-               int len = strlen(buf);
+               len = strlen(buf);
                snprintf(buf+len, sizeof buf - len, "/%s", d);
        }
        packpath(buf);
index dff8a9e..3cba512 100644 (file)
@@ -149,12 +149,12 @@ main(int argc, char **argv)
        struct msgs *mp = NULL;
        FILE *in;
 
-       filter = getcpy(etcpath(mhlreply));
-
 #ifdef MHE
        int buildsw = 0;
 #endif /* MHE */
 
+       filter = getcpy(etcpath(mhlreply));
+
 #ifdef LOCALE
        setlocale(LC_ALL, "");
 #endif