]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Make getprogname() porting mandatory
authorGuillem Jover <guillem@hadrons.org>
Mon, 17 Apr 2023 21:59:03 +0000 (23:59 +0200)
committerGuillem Jover <guillem@hadrons.org>
Fri, 21 Apr 2023 03:20:27 +0000 (05:20 +0200)
Although the function is documented as possibly returning NULL if it
cannot find a known source of information, we should still at least
attempt to port it to any supported system, and otherwise explicitly
mark it as not implementable for such systems if that was to be the
case.

src/progname.c

index bebf7141705c3ee3997c392c6e2879f15b8c2003..b62ecd417474338dc85b74853b63e633ac33d22f 100644 (file)
@@ -126,6 +126,8 @@ done:
                free(wpath);
                free(mbname);
        }
+#else
+#error "Function getprogname() needs to be ported."
 #endif
 
        return __progname;