Files
ninvaders/ninvaders-fix-doSleep-decl.patch
Dirk Stoecker 74d58b6129 - Backport ninvaders-fix-render-loop.patch: Fix buffer overflow in
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
2025-07-17 06:46:23 +00:00

37 lines
1.1 KiB
Diff
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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();