diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2016-07-07 19:46:47 -0400 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2016-07-07 19:46:47 -0400 |
commit | f528b66a0ea74b306bed22d243495458c8cf2383 (patch) | |
tree | 8f29e25b83ca88529da26e8b9e0e988005357f4a /src/checksum.c | |
parent | 03bdee772197c600b0066ebd1f27172332045da2 (diff) | |
download | udpastcp-f528b66a0ea74b306bed22d243495458c8cf2383.tar.xz udpastcp-f528b66a0ea74b306bed22d243495458c8cf2383.zip |
Fix memory leaks, miscellaneous issues.
Diffstat (limited to 'src/checksum.c')
-rw-r--r-- | src/checksum.c | 3 |
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 |