mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
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
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
|
@ -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 a new issue