diff options
author | 2019-05-21 20:04:30 +0300 | |
---|---|---|
committer | 2019-05-21 20:14:31 +0300 | |
commit | cce1aad04a2ce4ea0447ec8f3f4c41a8936d4a1a (patch) | |
tree | de9b03a434cb8f15ca9504c2d8b5cd03b99636fc /include | |
parent | 98a5917e7700a24d30ff8aed8d91392309bea40f (diff) | |
download | usurpation-cce1aad04a2ce4ea0447ec8f3f4c41a8936d4a1a.tar.gz usurpation-cce1aad04a2ce4ea0447ec8f3f4c41a8936d4a1a.tar.bz2 usurpation-cce1aad04a2ce4ea0447ec8f3f4c41a8936d4a1a.zip |
daemon: net: getlastdata now allocates a buffer.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'include')
-rw-r--r-- | include/net.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |