blob: c190719182d298c007ef175e6f8e5b35ee2690f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
}
|