Module Name: src Committed By: gutteridge Date: Mon Nov 25 21:27:55 UTC 2024
Modified Files: src/usr.sbin/mopd/common: port.h Log Message: mopd/common/port.h: apply minor KNF To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/mopd/common/port.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/mopd/common/port.h diff -u src/usr.sbin/mopd/common/port.h:1.2 src/usr.sbin/mopd/common/port.h:1.3 --- src/usr.sbin/mopd/common/port.h:1.2 Mon Nov 25 21:20:46 2024 +++ src/usr.sbin/mopd/common/port.h Mon Nov 25 21:27:55 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: port.h,v 1.2 2024/11/25 21:20:46 gutteridge Exp $ */ +/* $NetBSD: port.h,v 1.3 2024/11/25 21:27:55 gutteridge Exp $ */ /*- * Copyright (c) 2016 The NetBSD Foundation, Inc. @@ -59,8 +59,10 @@ #include <sys/types.h> extern char *__progname; + static inline const char * -getprogname(void) { +getprogname(void) +{ return __progname; }