diff options
author | Jan Kara <jack@suse.cz> | 2020-11-30 16:35:26 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2020-11-30 16:37:41 +0100 |
commit | 1959f3768a284315250acd4d17a9f5ef0b8ea189 (patch) | |
tree | da3aee8917a5306811aee9e571391dc58d2464f3 | |
parent | 43b6e31f39edbe7de4f4feeef4d0cf6be093e021 (diff) | |
download | linuxquota-1959f3768a284315250acd4d17a9f5ef0b8ea189.tar.gz |
Drop sys/cdefs.h usage
quota.h header includes sys/cdefs.h because it uses __P() macro in
quotactl syscall declaration. However glibc currently defines __P() is
nop and it only causes issues with other libc implementations (e.g. musl
libc). So just drop __P() usage and sys/cdefs.h include.
Reported-by: 2xsaiko <git@dblsaiko.net>
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | quota.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,7 +1,6 @@ #ifndef GUARD_QUOTA_H #define GUARD_QUOTA_H -#include <sys/cdefs.h> #include <sys/types.h> #include <stdint.h> @@ -182,6 +181,6 @@ enum { #endif #endif -long quotactl __P((int, const char *, qid_t, caddr_t)); +long quotactl(int, const char *, qid_t, caddr_t); #endif /* _QUOTA_ */ |