diff options
author | Ted Lemon <source@isc.org> | 1997-12-06 04:03:04 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1997-12-06 04:03:04 +0000 |
commit | 19ea90f71ef63394aebc116463d6e345d40e3575 (patch) | |
tree | 04ac54b2eeb25eaafce49f0a2d8626f00a653ac9 /relay | |
parent | 1ac657a58e77ba0c0a048402906be7b7f40dcaee (diff) | |
download | isc-dhcp-19ea90f71ef63394aebc116463d6e345d40e3575.tar.gz |
Cast pid_t up to long so that printf will work on systems where it's long and not int.
Diffstat (limited to 'relay')
-rw-r--r-- | relay/dhcrelay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c index 8f0ddba9..a152131a 100644 --- a/relay/dhcrelay.c +++ b/relay/dhcrelay.c @@ -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); } } |