[PATCH 3/3] s3: Remove unecessary __P() macro

Felix Janda felix.janda at posteo.de
Mon Jun 22 12:57:53 MDT 2015


__P() is used for compatibility with old K&R C compilers. With
ANSI C this macro has no effect. Since we are assuming ANSI C in
the rest of the code, the macro is not necessary.

This fixes a compilation error with musl libc because of undeclared
__P.

Signed-off-by: Felix Janda <felix.janda at posteo.de>
---
 source3/include/samba_linux_quota.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/include/samba_linux_quota.h b/source3/include/samba_linux_quota.h
index 8dbbec2..acdf84d 100644
--- a/source3/include/samba_linux_quota.h
+++ b/source3/include/samba_linux_quota.h
@@ -227,7 +227,7 @@ struct if_dqinfo {
 	#endif
 #endif
 
-long quotactl __P((int, const char *, qid_t, caddr_t));
+long quotactl (int, const char *, qid_t, caddr_t);
 
 #endif /* _QUOTA_LINUX */
 
-- 
2.3.6


More information about the samba-technical mailing list