diff options
author | brian <brian@FreeBSD.org> | 2002-06-06 01:39:46 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2002-06-06 01:39:46 +0000 |
commit | e96dc1713cb1f0e5e9022cba3c93a3e1ac6348e4 (patch) | |
tree | e741685891ca28961419c3960077c5c1fb336c52 /usr.sbin/ppp/radius.c | |
parent | 8d32f3a19b12f00209a472252a36bff41953f0ce (diff) | |
download | FreeBSD-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.c | 4 |
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 */ |