653a95fbab
platforms which use GCC 3.3.x.
35 lines
815 B
Text
35 lines
815 B
Text
$NetBSD: patch-aa,v 1.2 2003/11/14 13:36:21 tron Exp $
|
|
|
|
--- arpd.c.orig 1998-05-24 16:14:13.000000000 +0200
|
|
+++ arpd.c 2003-11-14 14:35:02.000000000 +0100
|
|
@@ -47,8 +47,8 @@
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <syslog.h>
|
|
-#include <varargs.h>
|
|
#include <pcap.h>
|
|
+#include <errno.h>
|
|
#include "error.h"
|
|
#include "arpd.h"
|
|
#include "wraplib.h"
|
|
@@ -205,12 +205,15 @@
|
|
struct if_elm *pIf_elm;
|
|
|
|
progname = "arpd"; /* for err_xxx */
|
|
- if (argc > 1)
|
|
+ if (argc > 1) {
|
|
pF = fopen(argv[1], "r");
|
|
- else
|
|
- pF = fopen("/usr/local/etc/arpd.conf", "r");
|
|
- if (pF == NULL)
|
|
- err_sys("fopen");
|
|
+ if (pF == NULL)
|
|
+ err_sys("fopen %s", argv[1]);
|
|
+ } else {
|
|
+ pF = fopen(PREFIX "/etc/arpd.conf", "r");
|
|
+ if (pF == NULL)
|
|
+ err_sys("fopen " PREFIX "/etc/arpd.conf");
|
|
+ }
|
|
|
|
Read_conf(pF);
|
|
fclose(pF);
|