From cce1aad04a2ce4ea0447ec8f3f4c41a8936d4a1a Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Tue, 21 May 2019 20:04:30 +0300 Subject: daemon: net: getlastdata now allocates a buffer. Signed-off-by: Gediminas Jakutis --- include/net.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/net.h') diff --git a/include/net.h b/include/net.h index 34f557a..ce8c8e2 100644 --- a/include/net.h +++ b/include/net.h @@ -22,7 +22,7 @@ #ifndef NET_H_INCLUDED #define NET_H_INCLUDED -#define dgsize 512 +#define MTU 1500 enum response { ERROR = -1, @@ -36,6 +36,6 @@ enum response { int net_init(const unsigned short int port); int net_close(int nd); -int net_getlastdata(int nd, char * const data); +int net_getlastdata(int nd, char ** const data); #endif /* NET_H_INCLUDED */ -- cgit v1.2.3