kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warnings in rigctld.c
rodzic
f0437aa575
commit
8c73836b48
|
@ -245,7 +245,6 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
struct addrinfo hints, *result, *saved_result;
|
struct addrinfo hints, *result, *saved_result;
|
||||||
int sock_listen;
|
int sock_listen;
|
||||||
int sockopt;
|
|
||||||
int reuseaddr = 1;
|
int reuseaddr = 1;
|
||||||
int twiddle = 0;
|
int twiddle = 0;
|
||||||
char host[NI_MAXHOST];
|
char host[NI_MAXHOST];
|
||||||
|
@ -672,9 +671,12 @@ int main(int argc, char *argv[])
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
sockopt = SO_SYNCHRONOUS_NONALERT;
|
{
|
||||||
|
int sockopt = SO_SYNCHRONOUS_NONALERT;
|
||||||
setsockopt(INVALID_SOCKET, SOL_SOCKET, SO_OPENTYPE, (char *)&sockopt,
|
setsockopt(INVALID_SOCKET, SOL_SOCKET, SO_OPENTYPE, (char *)&sockopt,
|
||||||
sizeof(sockopt));
|
sizeof(sockopt));
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -728,7 +730,7 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
/* allow IPv4 mapped to IPv6 clients Windows and BSD default
|
/* allow IPv4 mapped to IPv6 clients Windows and BSD default
|
||||||
this to 1 (i.e. disallowed) and we prefer it off */
|
this to 1 (i.e. disallowed) and we prefer it off */
|
||||||
sockopt = 0;
|
int sockopt = 0;
|
||||||
|
|
||||||
if (setsockopt(sock_listen,
|
if (setsockopt(sock_listen,
|
||||||
IPPROTO_IPV6,
|
IPPROTO_IPV6,
|
||||||
|
|
Ładowanie…
Reference in New Issue