summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/radius.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-06-06 01:39:46 +0000
committerbrian <brian@FreeBSD.org>2002-06-06 01:39:46 +0000
commite96dc1713cb1f0e5e9022cba3c93a3e1ac6348e4 (patch)
treee741685891ca28961419c3960077c5c1fb336c52 /usr.sbin/ppp/radius.c
parent8d32f3a19b12f00209a472252a36bff41953f0ce (diff)
downloadFreeBSD-src-e96dc1713cb1f0e5e9022cba3c93a3e1ac6348e4.zip
FreeBSD-src-e96dc1713cb1f0e5e9022cba3c93a3e1ac6348e4.tar.gz
Cast pid_t to long for printf()ing
Obtained from: OpenBSD
Diffstat (limited to 'usr.sbin/ppp/radius.c')
-rw-r--r--usr.sbin/ppp/radius.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/radius.c b/usr.sbin/ppp/radius.c
index cb3872e..87d5375 100644
--- a/usr.sbin/ppp/radius.c
+++ b/usr.sbin/ppp/radius.c
@@ -765,8 +765,8 @@ radius_Account(struct radius *r, struct radacct *ac, struct datalink *dl,
ac->authentic = 2; /* Assume RADIUS verified auth data */
/* Generate a session ID */
- snprintf(ac->session_id, sizeof ac->session_id, "%s%d-%s%lu",
- dl->bundle->cfg.auth.name, (int)getpid(),
+ snprintf(ac->session_id, sizeof ac->session_id, "%s%ld-%s%lu",
+ dl->bundle->cfg.auth.name, (long)getpid(),
dl->peer.authname, (unsigned long)stats->uptime);
/* And grab our MP socket name */
OpenPOWER on IntegriCloud