summaryrefslogtreecommitdiff
path: root/src/checksum.c
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2016-07-07 19:46:47 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2016-07-07 19:46:47 -0400
commitf528b66a0ea74b306bed22d243495458c8cf2383 (patch)
tree8f29e25b83ca88529da26e8b9e0e988005357f4a /src/checksum.c
parent03bdee772197c600b0066ebd1f27172332045da2 (diff)
downloadudpastcp-f528b66a0ea74b306bed22d243495458c8cf2383.tar.xz
udpastcp-f528b66a0ea74b306bed22d243495458c8cf2383.zip
Fix memory leaks, miscellaneous issues.
Diffstat (limited to 'src/checksum.c')
-rw-r--r--src/checksum.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/checksum.c b/src/checksum.c
index 53d4e5a..48df2c7 100644
--- a/src/checksum.c
+++ b/src/checksum.c
@@ -35,6 +35,9 @@
#include <endian.h>
#include <netinet/in.h>
#include <stdint.h>
+#include <stdlib.h>
+#include <sys/socket.h>
+
#include "checksum.h"
/* Revised by Kenneth Albanowski for m68knommu. Basic problem: unaligned access