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:
parent
94776162b1
commit
551a3d945e
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user