From: Romain Naour Date: Fri, 19 Feb 2016 21:50:48 +0000 (+0100) Subject: vipw: Remove pre-ANSI compiler support X-Git-Tag: v2.28-rc1~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=092bc0edaa23d58d4a5536bd1174a824f792c7fc;p=thirdparty%2Futil-linux.git vipw: Remove pre-ANSI compiler support __P() is used for compatibility with old K&R C compilers. With ANSI C this macro has no effect. This fixes a compilation error with musl libc because of undeclared __P. Ref: https://lists.samba.org/archive/samba-technical/2015-June/108042.html Signed-off-by: Romain Naour --- diff --git a/login-utils/vipw.c b/login-utils/vipw.c index a3c932f165..bb4a8baac1 100644 --- a/login-utils/vipw.c +++ b/login-utils/vipw.c @@ -85,7 +85,7 @@ int program; char orig_file[FILENAMELEN]; /* original file /etc/passwd or /etc/group */ char *tmp_file; /* tmp file */ -void pw_error __P((char *, int, int)); +void pw_error (char *, int, int); static void copyfile(int from, int to) {