summaryrefslogtreecommitdiff
path: root/games/crossfire-server/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-11-11 00:21:17 +0000
committerjoerg <joerg@pkgsrc.org>2011-11-11 00:21:17 +0000
commit5c7610fea05cd32566d5a3489f0d586790555eff (patch)
treed6a1614706c2c3be82524326efb360afa5966dd4 /games/crossfire-server/patches
parentb4a9ec299d087c867f89ef4509c931eba1271301 (diff)
downloadpkgsrc-5c7610fea05cd32566d5a3489f0d586790555eff.tar.gz
Fix return; in non-void functions
Diffstat (limited to 'games/crossfire-server/patches')
-rw-r--r--games/crossfire-server/patches/patch-server-plugins.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/games/crossfire-server/patches/patch-server-plugins.c b/games/crossfire-server/patches/patch-server-plugins.c
new file mode 100644
index 00000000000..bbdf3de0d00
--- /dev/null
+++ b/games/crossfire-server/patches/patch-server-plugins.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-server-plugins.c,v 1.1 2011/11/11 00:21:17 joerg Exp $
+
+--- server/plugins.c.orig 2011-11-08 20:44:23.000000000 +0000
++++ server/plugins.c
+@@ -3350,7 +3350,7 @@ void* cfapi_object_create(int* type, ...
+ robj = va_arg(args, object**);
+ va_end(args);
+ *robj = get_object();
+- return;
++ return NULL;
+ break;
+
+ case 1: /* Named object. Nearly the old plugin behavior, but we don't add artifact suffixes */
+@@ -3371,6 +3371,7 @@ void* cfapi_object_create(int* type, ...
+ else
+ *robj = NULL;
+ }
++ return NULL;
+ break;
+
+ default: