]> granicus.if.org Git - fortune-mod/commitdiff
avoid predecls
authorShlomi Fish <shlomif@shlomifish.org>
Wed, 29 Apr 2020 08:46:24 +0000 (11:46 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Wed, 29 Apr 2020 08:46:24 +0000 (11:46 +0300)
fortune-mod/util/strfile.c

index 1a8b443bd3e4bf6674ffb9ab16adb13df1a13a25..d08790cd2409175b1b11073f9d26721f32acf88f 100644 (file)
@@ -362,7 +362,6 @@ int main(int ac, char **av)
 {
     char *sp;
     FILE *inf, *outf;
-    STR *fp;
     bool len_was_set = false;
 
     getargs(ac, av); /* evalute arguments */
@@ -444,7 +443,7 @@ int main(int ac, char **av)
             {
             }
             ALLOC(Firstch, Num_pts);
-            fp = &Firstch[Num_pts - 1];
+            STR *const fp = &Firstch[Num_pts - 1];
             fp->first =
                 ((Iflag && isupper(*nsp)) ? ((char)tolower(*nsp)) : (*nsp));
             fp->pos = Seekpts[Num_pts - 1];