projects
/
umurmur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d604770
)
Remove unused function
author
fatbob313
<martin@fatbob.nu>
Sun, 14 Feb 2010 21:24:36 +0000
(21:24 +0000)
committer
fatbob313
<martin@fatbob.nu>
Sun, 14 Feb 2010 21:24:36 +0000
(21:24 +0000)
src/messages.c
patch
|
blob
|
history
diff --git
a/src/messages.c
b/src/messages.c
index 06a72eb4fae8c696fb1493594a9b0077b3835c0e..7b99ce0c9e477ccc57bb20f23efcff4ae38d6f35 100644
(file)
--- a/
src/messages.c
+++ b/
src/messages.c
@@
-41,7
+41,6
@@
#define PREAMBLE_SIZE 6
#define PREAMBLE_SIZE 6
-static void dumpmsg(uint8_t *data, int size);
static message_t *Msg_create_nopayload(messageType_t messageType);
static void Msg_addPreamble(uint8_t *buffer, uint16_t type, uint32_t len)
static message_t *Msg_create_nopayload(messageType_t messageType);
static void Msg_addPreamble(uint8_t *buffer, uint16_t type, uint32_t len)
@@
-488,23
+487,6
@@
void Msg_free(message_t *msg)
free(msg);
}
free(msg);
}
-void dumpmsg(uint8_t *data, int size)
-{
- int i, r = 0, offset = 0;
- char buf[512];
-
- while (r * 8 + i < size) {
- for (i = 0; i < 8 && r * 8 + i < size; i++) {
- offset += sprintf(buf + offset, "%x ", data[r * 8 + i]);
- }
- sprintf(buf + offset, "\n");
- printf(buf);
- offset = 0;
- r++;
- i = 0;
- }
-}
-
message_t *Msg_CreateVoiceMsg(uint8_t *data, int size)
{
message_t *msg = NULL;
message_t *Msg_CreateVoiceMsg(uint8_t *data, int size)
{
message_t *msg = NULL;