summaryrefslogtreecommitdiffstats
path: root/sbin/slattach/slattach.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-06-28 20:33:36 +0000
committerbde <bde@FreeBSD.org>1998-06-28 20:33:36 +0000
commit21b894709fabc405f5c1204667b0f3aecbc970d2 (patch)
tree4bf52a7b1f184da676a26219d1b6dccac5504850 /sbin/slattach/slattach.c
parentc19967f2fc42950d997012faec049842753a8846 (diff)
downloadFreeBSD-src-21b894709fabc405f5c1204667b0f3aecbc970d2.zip
FreeBSD-src-21b894709fabc405f5c1204667b0f3aecbc970d2.tar.gz
Fixed printf format errors.
Diffstat (limited to 'sbin/slattach/slattach.c')
-rw-r--r--sbin/slattach/slattach.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c
index cdc0c01..9edf888 100644
--- a/sbin/slattach/slattach.c
+++ b/sbin/slattach/slattach.c
@@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)slattach.c 4.6 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: slattach.c,v 1.30 1998/01/25 09:16:55 jb Exp $";
+static char rcsid[] = "$Id: slattach.c,v 1.31 1998/02/20 07:28:50 jb Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -268,7 +268,7 @@ void acquire_line()
/* create PID file */
if((pidfile = fopen(pidfilename, "w"))) {
- fprintf(pidfile, "%ld\n", getpid());
+ fprintf(pidfile, "%ld\n", (long)getpid());
fclose(pidfile);
}
OpenPOWER on IntegriCloud