]> granicus.if.org Git - fortune-mod/commitdiff
Fix tidyall tests. fix-bsd-o
authorShlomi Fish <shlomif@shlomifish.org>
Fri, 3 Mar 2023 05:05:25 +0000 (07:05 +0200)
committerShlomi Fish <shlomif@shlomifish.org>
Fri, 3 Mar 2023 05:05:25 +0000 (07:05 +0200)
See:

https://metacpan.org/release/Code-TidyAll .

fortune-mod/fortune/fortune.c

index d68e523bd83f2ad2266cc0af83d28f2d620268d5..214d1bb53a9fd2e17a161a2b3f9ed93d67aaf1dc 100644 (file)
@@ -1029,8 +1029,8 @@ static int form_file_list(char **files, int file_cnt)
             offensive = true;
         }
 
-        const charfulldir = offensive ? OFFDIR : FORTDIR;
-        const charlocdir = offensive ? LOCOFFDIR : LOCFORTDIR;
+        const char *fulldir = offensive ? OFFDIR : FORTDIR;
+        const char *locdir = offensive ? LOCOFFDIR : LOCFORTDIR;
 
         if (strcmp(sp, "all") == 0)
         {
@@ -1046,8 +1046,7 @@ static int form_file_list(char **files, int file_cnt)
             {
                 snprintf(
                     fullpathname, sizeof(fullpathname), "%s/%s", fulldir, sp);
-                snprintf(
-                    locpathname, sizeof(locpathname), "%s/%s", locdir, sp);
+                snprintf(locpathname, sizeof(locpathname), "%s/%s", locdir, sp);
             }
             else
             {