aboutsummaryrefslogtreecommitdiffstats
path: root/src/userinfo.h
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2023-11-20 17:21:48 +0100
committerSebastian Pipping <sebastian@pipping.org>2023-11-20 18:36:08 +0100
commit9d5b333fb6e548aa2a9cda9094ad7e96e3eb33f7 (patch)
tree014d5a8d1de974ee2e07b9db67477df8d3a0adfb /src/userinfo.h
parent9cc4a6928da3931d0d7d6afad4489384cb21de23 (diff)
downloadbindfs-9d5b333fb6e548aa2a9cda9094ad7e96e3eb33f7.tar.gz
src|tests: Address warning -Wstrict-prototypes
Symptom with Clang 15: > In file included from userinfo.c:20: > ./userinfo.h:38:27: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] > void invalidate_user_cache(); /* safe to call from signal handler */ > ^ > void > [many more]
Diffstat (limited to 'src/userinfo.h')
-rw-r--r--src/userinfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userinfo.h b/src/userinfo.h
index 4c0ca55..6886284 100644
--- a/src/userinfo.h
+++ b/src/userinfo.h
@@ -35,6 +35,6 @@ int user_uid(const char *username, uid_t *ret);
int group_gid(const char *groupname, gid_t *ret);
int user_belongs_to_group(uid_t uid, gid_t gid);
-void invalidate_user_cache(); /* safe to call from signal handler */
+void invalidate_user_cache(void); /* safe to call from signal handler */
#endif