summaryrefslogtreecommitdiff
path: root/libexec/bootpd/trygetea.c
diff options
context:
space:
mode:
authorPaul Traina <pst@FreeBSD.org>1996-01-23 01:35:04 +0000
committerPaul Traina <pst@FreeBSD.org>1996-01-23 01:35:04 +0000
commite08ac58bbe2be2817736b8f4b32c75f8d55359df (patch)
tree145d6ce072fde2eeda7863a006d92fd2c1eec916 /libexec/bootpd/trygetea.c
parenta270abb407a717b6c38a10d1c996af9ac907f84a (diff)
Notes
Diffstat (limited to 'libexec/bootpd/trygetea.c')
-rw-r--r--libexec/bootpd/trygetea.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libexec/bootpd/trygetea.c b/libexec/bootpd/trygetea.c
index e9314aede96d..5510995386e9 100644
--- a/libexec/bootpd/trygetea.c
+++ b/libexec/bootpd/trygetea.c
@@ -9,6 +9,9 @@
#include <sys/sockio.h>
#endif
+#ifdef _AIX32
+#include <sys/time.h> /* for struct timeval in net/if.h */
+#endif
#include <net/if.h> /* for struct ifreq */
#include <netinet/in.h>
#include <arpa/inet.h> /* inet_ntoa */
@@ -18,10 +21,14 @@
#include <ctype.h>
#include <errno.h>
+#include "getether.h"
+
int debug = 0;
char *progname;
+void
main(argc, argv)
+ int argc;
char **argv;
{
u_char ea[16]; /* Ethernet address */
@@ -33,7 +40,7 @@ main(argc, argv)
printf("need interface name\n");
exit(1);
}
- if ((i = getether(argv[1], ea)) < 0) {
+ if ((i = getether(argv[1], (char*)ea)) < 0) {
printf("Could not get Ethernet address (rc=%d)\n", i);
exit(1);
}