diff options
author | wiz <wiz@pkgsrc.org> | 2012-04-01 14:41:17 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2012-04-01 14:41:17 +0000 |
commit | cc341aed760483fede5828352bf3684ab6173e7d (patch) | |
tree | 1a9fd79db1a05d591a0ce6a513b4091f7edce150 /games | |
parent | dd3f92b94561811255125c05f161fd8125fa998c (diff) | |
download | pkgsrc-cc341aed760483fede5828352bf3684ab6173e7d.tar.gz |
Cast away some constness so this builds with clang.
Diffstat (limited to 'games')
-rw-r--r-- | games/warmux/distinfo | 3 | ||||
-rw-r--r-- | games/warmux/patches/patch-lib_warmux_action_action.cpp | 27 |
2 files changed, 29 insertions, 1 deletions
diff --git a/games/warmux/distinfo b/games/warmux/distinfo index 42f311f93a8..d2912a5cb48 100644 --- a/games/warmux/distinfo +++ b/games/warmux/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1.1.1 2011/01/27 18:00:48 adam Exp $ +$NetBSD: distinfo,v 1.2 2012/04/01 14:41:17 wiz Exp $ SHA1 (warmux-11.01.tar.bz2) = 18e5d5bf144f069405c75ff8fe51296d9a7871a5 RMD160 (warmux-11.01.tar.bz2) = 85a7bbfed5ca2ccbd793a12d7ea548948a747a88 @@ -6,3 +6,4 @@ Size (warmux-11.01.tar.bz2) = 110379327 bytes SHA1 (patch-aa) = 163449e2cc6fadede8ce1a77bee08fcda59a0f0f SHA1 (patch-ab) = 48893791c36ae88b3fc5f565a39d3de786bc88d4 SHA1 (patch-ac) = 24179b2ccdc2dc2dc6c95c33f12b7e55bb6f5a6e +SHA1 (patch-lib_warmux_action_action.cpp) = 8a1138902c4fb8fbff4fddac4975fe352b532eca diff --git a/games/warmux/patches/patch-lib_warmux_action_action.cpp b/games/warmux/patches/patch-lib_warmux_action_action.cpp new file mode 100644 index 00000000000..c190719182d --- /dev/null +++ b/games/warmux/patches/patch-lib_warmux_action_action.cpp @@ -0,0 +1,27 @@ +$NetBSD: patch-lib_warmux_action_action.cpp,v 1.1 2012/04/01 14:41:17 wiz Exp $ + +Cast away some constness for clang-3.1. + +--- lib/warmux/action/action.cpp.orig 2011-01-20 15:53:53.000000000 +0000 ++++ lib/warmux/action/action.cpp +@@ -73,16 +73,16 @@ Action::Action(const char *buffer, Dista + + var.clear(); + buffer += 4; // skip the buffer len +- m_type = (Action_t)SDLNet_Read32(buffer); ++ m_type = (Action_t)SDLNet_Read32((char*)buffer); + buffer += 4; +- m_timestamp = (uint)SDLNet_Read32(buffer); ++ m_timestamp = (uint)SDLNet_Read32((char*)buffer); + buffer += 4; +- int m_length = SDLNet_Read32(buffer); ++ int m_length = SDLNet_Read32((char*)buffer); + buffer += 4; + + for(int i=0; i < m_length; i++) + { +- uint32_t val = SDLNet_Read32(buffer); ++ uint32_t val = SDLNet_Read32((char*)buffer); + var.push_back(val); + buffer += 4; + } |