99b7915817
Initial port and manual pages by J Sisson. Tweaked by myself and ajacoutot@. OK ajacoutot@
21 lines
631 B
Plaintext
21 lines
631 B
Plaintext
$OpenBSD: patch-src_messages_c,v 1.1.1.1 2011/04/03 12:04:47 dcoppa Exp $
|
|
--- src/messages.c.orig Mon Dec 6 21:03:03 2010
|
|
+++ src/messages.c Thu Mar 31 10:50:02 2011
|
|
@@ -32,6 +32,7 @@
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
+#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
|
|
#include "messages.h"
|
|
@@ -68,7 +69,7 @@ static void Msg_getPreamble(uint8_t *buffer, int *type
|
|
#define MAX_MSGSIZE (BUFSIZE - PREAMBLE_SIZE)
|
|
int Msg_messageToNetwork(message_t *msg, uint8_t *buffer)
|
|
{
|
|
- int len;
|
|
+ int len = 0;
|
|
uint8_t *bufptr = buffer + PREAMBLE_SIZE;
|
|
|
|
Log_debug("To net: msg type %d", msg->messageType);
|