mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-30 19:31:26 +00:00
Fixed warnings
This commit is contained in:
parent
6ee4c8939f
commit
0309cb187f
2 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
#include <jni.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -181,7 +181,7 @@ int get_receive_buffer(const struct ng_session *cur) {
|
|||
// /proc/sys/net/core/wmem_default
|
||||
int sendbuf = 0;
|
||||
int sendbufsize = sizeof(sendbuf);
|
||||
if (getsockopt(cur->socket, SOL_SOCKET, SO_SNDBUF, &sendbuf, &sendbufsize) < 0)
|
||||
if (getsockopt(cur->socket, SOL_SOCKET, SO_SNDBUF, &sendbuf, (socklen_t *) &sendbufsize) < 0)
|
||||
log_android(ANDROID_LOG_WARN, "getsockopt SO_RCVBUF %d: %s", errno, strerror(errno));
|
||||
|
||||
if (sendbuf == 0)
|
||||
|
|
Loading…
Reference in a new issue