]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Cast pid_t up to long so that printf will work on systems where it's long and not...
authorTed Lemon <source@isc.org>
Sat, 6 Dec 1997 04:03:04 +0000 (04:03 +0000)
committerTed Lemon <source@isc.org>
Sat, 6 Dec 1997 04:03:04 +0000 (04:03 +0000)
client/dhclient.c
relay/dhcrelay.c

index 92f8fdd5a11cfbbc720593857aef8d2b726f1a0d..c303688816a0c1cd4cf20fdd3aa0f8e7373da650 100644 (file)
@@ -56,7 +56,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhclient.c,v 1.43 1997/11/20 04:19:21 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhclient.c,v 1.44 1997/12/06 04:02:35 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -2049,7 +2049,7 @@ void write_client_pid_file ()
        if (!pf)
                warn ("Can't fdopen %s: %m", path_dhclient_pid);
        else {
-               fprintf (pf, "%d\n", getpid ());
+               fprintf (pf, "%ld\n", (long)getpid ());
                fclose (pf);
        }
 }
index 8f0ddba9506bfd639d27c963a3e487b64bf6df26..a152131a0facc7f8affc3faa19279096e520e88c 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcrelay.c,v 1.8 1997/11/22 07:55:36 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcrelay.c,v 1.9 1997/12/06 04:03:04 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -205,7 +205,7 @@ int main (argc, argv, envp)
                                warn ("Can't fdopen %s: %m",
                                      path_dhcrelay_pid);
                        else {
-                               fprintf (pf, "%d\n", getpid ());
+                               fprintf (pf, "%ld\n", (long)getpid ());
                                fclose (pf);
                        }       
                }