summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-07-28 01:30:16 +0000
committerache <ache@FreeBSD.org>1998-07-28 01:30:16 +0000
commitd66e06a69f2615002fb6b191dd1914e1d6c5955b (patch)
treebec05e654b50021ee0cd187df1fbdb1ddcd9c47b /lib/libutil
parentcf3f8f53ba5b5044e53d1c3c62fdbc1109371d76 (diff)
downloadFreeBSD-src-d66e06a69f2615002fb6b191dd1914e1d6c5955b.zip
FreeBSD-src-d66e06a69f2615002fb6b191dd1914e1d6c5955b.tar.gz
cast arg to (long) to match format
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/login_class.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c
index ba0a31d..74f1dff 100644
--- a/lib/libutil/login_class.c
+++ b/lib/libutil/login_class.c
@@ -21,7 +21,7 @@
*
* High-level routines relating to use of the user capabilities database
*
- * $Id: login_class.c,v 1.7 1998/05/25 03:55:23 steve Exp $
+ * $Id: login_class.c,v 1.8 1998/06/03 08:12:00 jb Exp $
*/
#include <stdio.h>
@@ -370,7 +370,7 @@ setusercontext(login_cap_t *lc, const struct passwd *pwd, uid_t uid, unsigned in
}
if (initgroups(pwd->pw_name, pwd->pw_gid) == -1) {
syslog(LOG_ERR, "initgroups(%s,%ld): %m", pwd->pw_name,
- pwd->pw_gid);
+ (long)pwd->pw_gid);
login_close(llc);
return -1;
}
@@ -389,7 +389,7 @@ setusercontext(login_cap_t *lc, const struct passwd *pwd, uid_t uid, unsigned in
/* This needs to be done after anything that needs root privs */
if ((flags & LOGIN_SETUSER) && setuid(uid) != 0) {
- syslog(LOG_ERR, "setuid(%ld): %m", uid);
+ syslog(LOG_ERR, "setuid(%ld): %m", (long)uid);
return -1; /* Paranoia again */
}
OpenPOWER on IntegriCloud