summaryrefslogtreecommitdiff
path: root/relay
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1997-12-06 04:03:04 +0000
committerTed Lemon <source@isc.org>1997-12-06 04:03:04 +0000
commit19ea90f71ef63394aebc116463d6e345d40e3575 (patch)
tree04ac54b2eeb25eaafce49f0a2d8626f00a653ac9 /relay
parent1ac657a58e77ba0c0a048402906be7b7f40dcaee (diff)
downloadisc-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.c4
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);
}
}