summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-07-18 13:40:12 +1000
committerDarren Tucker <dtucker@dtucker.net>2019-07-19 07:23:26 +1000
commit22b9b3e944880db906c6ac5527c4228bd92b293a (patch)
treeac0b9cc846035d33da15e1e1f269fc54666f91c8 /openbsd-compat
parented46a0c0705895834d3f47a46faa89c2a71b760a (diff)
Fix format string integer type in error message.
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/bsd-setres_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-setres_id.c b/openbsd-compat/bsd-setres_id.c
index a8e76bf6..04752d5a 100644
--- a/openbsd-compat/bsd-setres_id.c
+++ b/openbsd-compat/bsd-setres_id.c
@@ -50,7 +50,7 @@ setresgid(gid_t rgid, gid_t egid, gid_t sgid)
}
if (setgid(rgid) < 0) {
saved_errno = errno;
- error("setgid %ul: %.100s", (u_long)rgid, strerror(errno));
+ error("setgid %lu: %.100s", (u_long)rgid, strerror(errno));
errno = saved_errno;
ret = -1;
}