aboutsummaryrefslogtreecommitdiff
path: root/crn/packages/patches
diff options
context:
space:
mode:
Diffstat (limited to 'crn/packages/patches')
-rw-r--r--crn/packages/patches/blackbox_c_warnings.patch46
-rw-r--r--crn/packages/patches/cpplint-pytest-version.patch13
2 files changed, 46 insertions, 13 deletions
diff --git a/crn/packages/patches/blackbox_c_warnings.patch b/crn/packages/patches/blackbox_c_warnings.patch
new file mode 100644
index 0000000..2c57daa
--- /dev/null
+++ b/crn/packages/patches/blackbox_c_warnings.patch
@@ -0,0 +1,46 @@
+Description: Fix compiler warnings in blackbox.c
+Author: Adrian Bunk <bunk@debian.org>
+
+--- black-box-1.4.8.orig/src/blackbox.c
++++ black-box-1.4.8/src/blackbox.c
+@@ -27,6 +27,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <time.h>
+ #include <SDL.h>
+ #include <SDL_image.h>
+ #include <SDL_timer.h>
+@@ -553,6 +554,11 @@ void show_real()
+ SDL_UpdateRect(screen,0,0,0,0);
+ }
+
++static int abrand(int a,int b) //random number between a and b (inclusive)
++{
++ return(a+(rand() % (b-a+1)));
++}
++
+ void generate_field()
+ {
+ int x,y;
+@@ -852,11 +858,6 @@ void click()
+ this_turn_demo=0;
+ }
+
+-int abrand(int a,int b) //random number between a and b (inclusive)
+-{
+- return(a+(rand() % (b-a+1)));
+-}
+-
+ void get_click()
+ {
+ while ( SDL_WaitEvent(&event) >= 0 ) {
+@@ -895,7 +896,7 @@ void init_sound()
+ }
+ }
+
+-main(int argc, char *argv[])
++int main(int argc, char *argv[])
+ {
+ printf("\nBlack-Box version %s, Copyright (C) 2000-2008 Karl Bartel\n",VERSION);
+ printf("Black-Box comes with ABSOLUTELY NO WARRANTY; for details see COPYING'.\n");
diff --git a/crn/packages/patches/cpplint-pytest-version.patch b/crn/packages/patches/cpplint-pytest-version.patch
deleted file mode 100644
index a388d4a..0000000
--- a/crn/packages/patches/cpplint-pytest-version.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/setup.py b/setup.py
-index 0297e74..357adcb 100755
---- a/setup.py
-+++ b/setup.py
-@@ -75,7 +75,7 @@ setup(name='cpplint',
- long_description=open('README.rst').read(),
- license='BSD-3-Clause',
- setup_requires=[
-- "pytest-runner==5.2"
-+ "pytest-runner"
- ],
- tests_require=test_required,
- # extras_require allow pip install .[dev]