summaryrefslogtreecommitdiff
path: root/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common.c b/src/common.c
index 712bdae8d..78398b63c 100644
--- a/src/common.c
+++ b/src/common.c
@@ -113,13 +113,13 @@ fatal(const char* ident, int exitcode, char* format, ...)
/* Is the parent process allowed to call us?
*/
void
-check_caller(const char* ident, gid_t parentgid)
+check_caller(const char* ident, GID_T parentgid)
{
- gid_t mygid = getgid();
+ GID_T mygid = getgid();
if (parentgid != mygid) {
fatal(ident, GID_MISMATCH,
- "Failure to exec script. WANTED gid %d, GOT gid %d. "
- "(Reconfigure to take %d?)",
+ "Failure to exec script. WANTED gid %ld, GOT gid %ld. "
+ "(Reconfigure to take %ld?)",
parentgid, mygid, mygid);
}
}