diff options
author | wiz <wiz> | 2012-04-01 14:41:17 +0000 |
---|---|---|
committer | wiz <wiz> | 2012-04-01 14:41:17 +0000 |
commit | 4c2222d0b0e2fda50f240e6931ba063eaa477cf7 (patch) | |
tree | 1a9fd79db1a05d591a0ce6a513b4091f7edce150 /games/warmux/patches | |
parent | db0d0ae140a2df0f2e9980a9ac23ac963ed28617 (diff) | |
download | pkgsrc-4c2222d0b0e2fda50f240e6931ba063eaa477cf7.tar.gz |
Cast away some constness so this builds with clang.
Diffstat (limited to 'games/warmux/patches')
-rw-r--r-- | games/warmux/patches/patch-lib_warmux_action_action.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
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; + } |