1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Ensure variables are only declared once
Author: Stephen Kitt <skitt@debian.org>
--- a/src/wput.h
+++ b/src/wput.h
@@ -140,7 +140,9 @@
unsigned short int retry_interval;
unsigned int speed_limit;
-} opt;
+};
+
+extern struct global_options opt;
extern _fsession * fsession_queue_entry_point;
extern char * email_address;
--- a/src/wput.c
+++ b/src/wput.c
@@ -55,6 +55,7 @@
#include "utils.h"
extern char *optarg;
+struct global_options opt;
#ifdef WIN32
const static char * version = "0.6.2-w32";
|