diff options
author | joerg <joerg> | 2011-11-11 00:21:17 +0000 |
---|---|---|
committer | joerg <joerg> | 2011-11-11 00:21:17 +0000 |
commit | 2dd3c103d51980accb48285707b585c0e251927e (patch) | |
tree | d6a1614706c2c3be82524326efb360afa5966dd4 /games | |
parent | 148b795bb962e22715a83494960f87d440c34968 (diff) | |
download | pkgsrc-2dd3c103d51980accb48285707b585c0e251927e.tar.gz |
Fix return; in non-void functions
Diffstat (limited to 'games')
-rw-r--r-- | games/crossfire-server/distinfo | 3 | ||||
-rw-r--r-- | games/crossfire-server/patches/patch-server-plugins.c | 21 |
2 files changed, 23 insertions, 1 deletions
diff --git a/games/crossfire-server/distinfo b/games/crossfire-server/distinfo index 57ea93a82b3..b77f9d090a2 100644 --- a/games/crossfire-server/distinfo +++ b/games/crossfire-server/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.5 2011/08/20 15:32:48 joerg Exp $ +$NetBSD: distinfo,v 1.6 2011/11/11 00:21:17 joerg Exp $ SHA1 (crossfire-1.11.0.arch.tar.gz) = 29a3ea7cfd5df4dc5a375f5b4302aebb4d609964 RMD160 (crossfire-1.11.0.arch.tar.gz) = 8fa48ef33a83f1ed158a957db664a9deed96e1fc @@ -15,4 +15,5 @@ SHA1 (patch-ae) = 1c9d973c932d5c6ee6ee642611d64850e05e3985 SHA1 (patch-crossedit_png.c) = 4802c077285b47c7afc5acc7128020d6f54087ab SHA1 (patch-server-c_misc.c) = 203ef2baf2ef37406b6f88093646a8f69212892b SHA1 (patch-server-c_wiz.c) = 1f44d16218c842cc3f51213841e9276ca0b76715 +SHA1 (patch-server-plugins.c) = 4225fa60b44dff86e993315e85385c6c9102e81c SHA1 (patch-socket-metaserver.c) = f08f319322455d5f1309eb4e87741fa99bda5acb 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: |