summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/bundle.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-05-27 23:19:53 +0000
committerbrian <brian@FreeBSD.org>2002-05-27 23:19:53 +0000
commit6fc921d6933a5db8b754fa6ab177f1c028e79ec0 (patch)
tree6ce6e28acda23f677b77975c1a19442aba78c55b /usr.sbin/ppp/bundle.c
parent06c3939cfbc72394a1054e0811ae6d77cb14ba9b (diff)
downloadFreeBSD-src-6fc921d6933a5db8b754fa6ab177f1c028e79ec0.zip
FreeBSD-src-6fc921d6933a5db8b754fa6ab177f1c028e79ec0.tar.gz
Coerce pid_t to long rather than int for better portability.
Suggested by: Theo de Raadt <deraadt@openbsd.org>
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r--usr.sbin/ppp/bundle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index bbec25d..5a8536c 100644
--- a/usr.sbin/ppp/bundle.c
+++ b/usr.sbin/ppp/bundle.c
@@ -1615,8 +1615,8 @@ bundle_SendDatalink(struct datalink *dl, int s, struct sockaddr_un *sun)
int res;
if ((got = read(reply[0], &newpid, sizeof newpid)) == sizeof newpid) {
- log_Printf(LogDEBUG, "Received confirmation from pid %d\n",
- (int)newpid);
+ log_Printf(LogDEBUG, "Received confirmation from pid %ld\n",
+ (long)newpid);
if (lock && (res = ID0uu_lock_txfr(lock, newpid)) != UU_LOCK_OK)
log_Printf(LogERROR, "uu_lock_txfr: %s\n", uu_lockerr(res));
@@ -1756,8 +1756,8 @@ bundle_setsid(struct bundle *bundle, int holdsession)
close(fds[0]);
setsid();
bundle_ChangedPID(bundle);
- log_Printf(LogDEBUG, "%d -> %d: %s session control\n",
- (int)orig, (int)getpid(),
+ log_Printf(LogDEBUG, "%ld -> %ld: %s session control\n",
+ (long)orig, (long)getpid(),
holdsession ? "Passed" : "Dropped");
timer_InitService(0); /* Start the Timer Service */
break;
OpenPOWER on IntegriCloud