Fixes warnings from MSVC

This commit is contained in:
Philippe Antoine 2019-07-10 01:09:50 +02:00
parent 702c65922f
commit 3e408d59c4
2 changed files with 4 additions and 2 deletions

View file

@ -26,7 +26,10 @@ int dummy_send( void *ctx, const unsigned char *buf, size_t len )
(void) buf; (void) buf;
//pretends we wrote everything ok //pretends we wrote everything ok
return( len ); if (len > INT_MAX) {
return -1;
}
return int( len );
} }
int fuzz_recv( void *ctx, unsigned char *buf, size_t len ) int fuzz_recv( void *ctx, unsigned char *buf, size_t len )

View file

@ -1,5 +1,4 @@
#include <stdint.h> #include <stdint.h>
#include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>