render() function. Same as buffer_owerflow.patch, but with fixed patchfile name and updated PATCH-FIX-UPSTREAM. Adapted from https://sourceforge.net/p/ninvaders/bugs/2/ - Remove buffer_owerflow.patch: Obsoleted by ninvaders-fix-render-loop.patch. - Modify ninvaders-obey-cflags.patch: Add missing PATCH-FIX-UPSTREAM comment in spec file. - Backport ninvaders-fix-multiple-definitions.patch: Fix link-time error from multiple definitions of the same symbols in various object files. Adapted from https://sourceforge.net/p/ninvaders/bugs/2/ - Add ninvaders-sighandler_t.patch: Fix function signature of the signal handler. The correct signature expects an integer argument, which is currently missing. Resolves compile-time errors. - Add ninvaders-fix-doSleep-decl.patch: Harmonize conflicting declarations of doSleep(). The function expects an integer argument, which is currently missing in the declarations. Resolves compile-time errors. - Refresh existing patches accordingly OBS-URL: https://build.opensuse.org/package/show/games/ninvaders?expand=0&rev=7
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
Fixes the compile-time error show below.
|
||
|
||
globals.c:44:6: error: conflicting types for ‘doSleep’; have ‘void(int)’
|
||
44 | void doSleep(int microseconds)
|
||
| ^~~~~~~
|
||
In file included from globals.c:27:
|
||
globals.h:28:13: note: previous declaration of ‘doSleep’ with type ‘void(void)’
|
||
28 | extern void doSleep();
|
||
| ^~~~~~~
|
||
|
||
Index: ninvaders-0.1.1/globals.h
|
||
===================================================================
|
||
--- ninvaders-0.1.1.orig/globals.h
|
||
+++ ninvaders-0.1.1/globals.h
|
||
@@ -25,7 +25,7 @@
|
||
#ifndef GLOBALS
|
||
#define GLOBALS
|
||
|
||
-extern void doSleep();
|
||
+extern void doSleep(int microseconds);
|
||
|
||
extern void showUsage();
|
||
extern void showVersion();
|
||
Index: ninvaders-0.1.1/nInvaders.h
|
||
===================================================================
|
||
--- ninvaders-0.1.1.orig/nInvaders.h
|
||
+++ ninvaders-0.1.1/nInvaders.h
|
||
@@ -51,7 +51,7 @@ extern int level;
|
||
extern int skill_level;
|
||
|
||
// included from globals.h
|
||
-extern void doSleep();
|
||
+extern void doSleep(int microseconds);
|
||
extern void showUsage();
|
||
extern void showVersion();
|
||
extern void showGplShort();
|