projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make Client_textmessage() take a const char pointer.
[umurmur.git]
/
src
/
client.c
diff --git
a/src/client.c
b/src/client.c
index 5b76b7e3c6d1a3bd1a1f4f3df101e012a2f44203..240700e1253f1c270a6239c050289714dcbc8f70 100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-664,7
+664,7
@@
client_t *Client_iterate(client_t **client_itr)
return c;
}
return c;
}
-void Client_textmessage(client_t *client, char *text)
+void Client_textmessage(client_t *client, c
onst c
har *text)
{
char *message;
uint32_t *tree_id;
{
char *message;
uint32_t *tree_id;
@@
-983,7
+983,7
@@
int Client_voiceMsg(client_t *client, uint8_t *data, int len)
}
/* Sessions */
for (i = 0; i < TARGET_MAX_SESSIONS && vt->sessions[i] != -1; i++) {
}
/* Sessions */
for (i = 0; i < TARGET_MAX_SESSIONS && vt->sessions[i] != -1; i++) {
- client_t *c;
+ client_t *c
= NULL
;
buffer[0] = (uint8_t) (type | 2);
Log_debug("Whisper session %d", vt->sessions[i]);
while (Client_iterate(&c) != NULL) {
buffer[0] = (uint8_t) (type | 2);
Log_debug("Whisper session %d", vt->sessions[i]);
while (Client_iterate(&c) != NULL) {