diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-24 14:28:18 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-24 14:28:18 +0100 |
| commit | 1999007d45ba68626134b078f0b8a09430c58f5d (patch) | |
| tree | f8293a53185c8940d91d8f842f97f6354f623d9c /src | |
| parent | 5f956e035e648901645fd43d2e28fc6f8c49a585 (diff) | |
Added some consts.
Diffstat (limited to 'src')
| -rw-r--r-- | src/net/comm.c | 4 | ||||
| -rw-r--r-- | src/net/comm.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/net/comm.c b/src/net/comm.c index cbcfc44..bd078da 100644 --- a/src/net/comm.c +++ b/src/net/comm.c @@ -7,7 +7,7 @@ #include "client.h" #include "server.h" -bool net_recv(int sock, const msg_type_t type) +bool net_recv(const int sock, const msg_type_t type) { msg_t m; bool result; @@ -62,7 +62,7 @@ bool net_recv(int sock, const msg_type_t type) return result; } -bool net_send(int sock, const msg_type_t type, void *data) +bool net_send(const int sock, const msg_type_t type, const void *data) { bool result = true; diff --git a/src/net/comm.h b/src/net/comm.h index b13d034..c7174ff 100644 --- a/src/net/comm.h +++ b/src/net/comm.h @@ -39,7 +39,7 @@ typedef struct } msg_t; // generic network functions -bool net_recv(int sock, msg_type_t wanted); -bool net_send(int sock, const msg_type_t type, void *data); +bool net_recv(const int sock, const msg_type_t wanted); +bool net_send(const int sock, const msg_type_t type, const void *data); #endif // OXEN_NET_H |
