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'.
This commit is contained in:
Bruce Evans 1996-04-13 15:47:43 +00:00
parent 474bf6693a
commit 93d2c1bde1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15252
2 changed files with 3 additions and 3 deletions

View file

@ -139,7 +139,7 @@ static int put_pid (int fd, pid_t pid)
char buf[32];
int len;
len = sprintf (buf, "%10ld\n", pid);
len = sprintf (buf, "%10d\n", pid);
return write (fd, buf, len) == len;
}

View file

@ -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)
{