]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
vipw: Remove pre-ANSI compiler support
authorRomain Naour <romain.naour@gmail.com>
Fri, 19 Feb 2016 21:50:48 +0000 (22:50 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Feb 2016 08:50:22 +0000 (09:50 +0100)
__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 <romain.naour@gmail.com>
login-utils/vipw.c

index a3c932f1651f98d92b04d58c2bc9f19ece151193..bb4a8baac1623dac81b249b40c1da655f28fb36b 100644 (file)
@@ -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)
 {