File: double-declaration.patch

package info (click to toggle)
koules 1.4-29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,940 kB
  • sloc: ansic: 15,535; makefile: 779; asm: 379; tcl: 362; sh: 134
file content (14 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Only declare controls once
Author: Stephen Kitt <skitt@debian.org>

--- a/koules.c
+++ b/koules.c
@@ -50,7 +50,7 @@
 
 int             lastlevel = 0, maxlevel = 0;
 unsigned char   control[MAXROCKETS];
-struct control  controls[MAXROCKETS];
+extern struct control  controls[MAXROCKETS];
 int             dosprings = 0;
 int             randsprings = 0;
 int             nomouse = 0;