File fix-build.patch of Package cdpr

Index: cdpr-2.4/cdpr.h
===================================================================
--- cdpr-2.4.orig/cdpr.h
+++ cdpr-2.4/cdpr.h
@@ -44,13 +44,6 @@ struct singleton
 };
 
 /*
-** Global variables
-*/
-int timeout;
-int cdprs;
-pcap_t *handle;
-
-/*
 ** Function Prototypes
 */
 int	cdprs_action(int action, char *string, int verbose);
Index: cdpr-2.4/cdpr.c
===================================================================
--- cdpr-2.4.orig/cdpr.c
+++ cdpr-2.4/cdpr.c
@@ -87,6 +87,12 @@
 #include "cdpr.h"
 #include "cdp.h"
 
+/*
+** Global variables
+*/
+static int timeout;
+static int cdprs;
+
 void
 dump_ip (const u_char *ip)
 {
openSUSE Build Service is sponsored by