summaryrefslogtreecommitdiff
path: root/sbin/slattach
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-26 09:25:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-26 09:25:23 +0000
commit6aa6edb00aa211e3677bbe83a79f77a698463a78 (patch)
tree0d78960a0fcda70c8880a741fb843e94c28a0bb5 /sbin/slattach
parentc300dc80ea9a11b57eb166b83bf23af534af067f (diff)
pid_t cleanup
Diffstat (limited to 'sbin/slattach')
-rw-r--r--sbin/slattach/slattach.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c
index 0a8bd7280fb..10aa62fe797 100644
--- a/sbin/slattach/slattach.c
+++ b/sbin/slattach/slattach.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: slattach.c,v 1.12 2002/02/16 21:27:38 millert Exp $ */
+/* $OpenBSD: slattach.c,v 1.13 2002/05/26 09:24:35 deraadt Exp $ */
/* $NetBSD: slattach.c,v 1.17 1996/05/19 21:57:39 jonathan Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)slattach.c 8.2 (Berkeley) 1/7/94";
#else
-static char rcsid[] = "$OpenBSD: slattach.c,v 1.12 2002/02/16 21:27:38 millert Exp $";
+static char rcsid[] = "$OpenBSD: slattach.c,v 1.13 2002/05/26 09:24:35 deraadt Exp $";
#endif
#endif /* not lint */
@@ -168,7 +168,7 @@ main(argc, argv)
"%sslip.%s.pid", _PATH_VARRUN, dev + i);
truncate(pidfilename, 0); /* If this fails, so will the next one... */
if ((pidfile = fopen(pidfilename, "w")) != NULL) {
- fprintf(pidfile, "%d\n", pid);
+ fprintf(pidfile, "%ld\n", (long)pid);
(void) fclose(pidfile);
} else {
syslog(LOG_ERR, "Failed to create pid file %s: %m", pidfilename);