diff options
author | Romain Naour | 2016-02-19 22:50:48 +0100 |
---|---|---|
committer | Karel Zak | 2016-02-22 09:50:22 +0100 |
commit | 092bc0edaa23d58d4a5536bd1174a824f792c7fc (patch) | |
tree | 998db581be1397510f4e7244fd8d09ad3c3db916 /login-utils/vipw.c | |
parent | build-sys: fix typo (diff) | |
download | kernel-qcow2-util-linux-092bc0edaa23d58d4a5536bd1174a824f792c7fc.tar.gz kernel-qcow2-util-linux-092bc0edaa23d58d4a5536bd1174a824f792c7fc.tar.xz kernel-qcow2-util-linux-092bc0edaa23d58d4a5536bd1174a824f792c7fc.zip |
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 <romain.naour@gmail.com>
Diffstat (limited to 'login-utils/vipw.c')
-rw-r--r-- | login-utils/vipw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/vipw.c b/login-utils/vipw.c index a3c932f16..bb4a8baac 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) { |