Skip to content

Commit 3918af1

Browse files
committed
suppress the warning of openwrt
1 parent 28211e1 commit 3918af1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

netutils.c

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
#define KEEPALIVE_RETRY_MAX_COUNT 5
3434
#define KEEPALIVE_RETRY_INTERVAL_SEC 1
3535

36+
/* suppress the warning of openwrt */
37+
int initgroups(const char *user, gid_t group);
38+
3639
/* setsockopt(SO_KEEPALIVE) */
3740
void set_keepalive(int sockfd) {
3841
if (setsockopt(sockfd, SOL_SOCKET, SO_KEEPALIVE, &(int){1}, sizeof(int))) {

0 commit comments

Comments
 (0)