File: single-declaration.patch

package info (click to toggle)
wput 0.6.2%2Bgit20130413-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,676 kB
  • sloc: ansic: 6,854; sh: 3,460; makefile: 72; sed: 16
file content (26 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (3)
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";