diff options
author | bde <bde@FreeBSD.org> | 1996-04-13 15:47:43 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-04-13 15:47:43 +0000 |
commit | 13e9cefca0160e0dd0c48849c164fcaf88c8cd35 (patch) | |
tree | 24e2b196a731ca6343f80da78476874f5b1d3116 /usr.sbin/ppp | |
parent | dd1ec21349d0fb115e409df4ccab7c4312bb9535 (diff) | |
download | FreeBSD-src-13e9cefca0160e0dd0c48849c164fcaf88c8cd35.zip FreeBSD-src-13e9cefca0160e0dd0c48849c164fcaf88c8cd35.tar.gz |
Fixed a couple of format strings to match the change of pid_t from long
to int32_t. I only fixed the ones that I noticed the warnings for.
Perhaps most of the format strings are correct now because they were
wrong before. Except of course if int32_t isn't compatible with `int'.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index e371d49..5cdda60 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: main.c,v 1.16 1996/03/09 08:18:38 ache Exp $ + * $Id: main.c,v 1.17 1996/03/30 18:27:45 ache Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -382,7 +382,7 @@ char **argv; snprintf(pid_filename, sizeof (pid_filename), "%s/PPP.%s", _PATH_VARRUN, dstsystem); unlink(pid_filename); - sprintf(pid, "%lu\n", getpid()); + sprintf(pid, "%d\n", getpid()); if ((fd = open(pid_filename, O_RDWR|O_CREAT, 0666)) != -1) { |