mirror of
https://git.freebsd.org/ports.git
synced 2025-07-16 16:59:17 -04:00
It would have been easy just to set this to "USE_GCC=any" to fix it, but the code had plenty of undefined returns when a type was expected. Using clang exposed those problems. Hopefully I defined the missing return values correctly.
11 lines
419 B
C
11 lines
419 B
C
--- src/lib/sced/scedintr.c.orig 2001-05-01 20:54:05.000000000 +0000
|
|
+++ src/lib/sced/scedintr.c
|
|
@@ -1009,7 +1009,7 @@ char *string;
|
|
strcat(TypeOut,string);
|
|
else
|
|
strcat(TypeOut,"\n");
|
|
- if (strchr(TypeOut,'\n') == NULL) return;
|
|
+ if (strchr(TypeOut,'\n') == NULL) return (False);
|
|
if (MoreLine(TypeOut))
|
|
EnableMore(False);
|
|
*TypeOut = '\0';
|