diff options
| author | Mikhail Burakov <mburakov@mailbox.org> | 2023-04-09 06:56:10 +0200 | 
|---|---|---|
| committer | Mikhail Burakov <mburakov@mailbox.org> | 2023-04-09 06:56:10 +0200 | 
| commit | e2adf0059fee7d486fe00bb2585de1133115b87f (patch) | |
| tree | ab21e1e1a431d60aa00a16d670324e48ca12e247 | |
| parent | 4252d50324a5be83b0624b5fc640dc96a4a53c1e (diff) | |
Skip constant for tcp nodelay configuration
| -rw-r--r-- | main.c | 3 | 
1 files changed, 1 insertions, 2 deletions
| @@ -55,8 +55,7 @@ static int ConnectSocket(const char* arg) {      LOG("Failed to create socket (%s)", strerror(errno));      return -1;    } -  static const int one = 1; -  if (setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one))) { +  if (setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, &(int){1}, sizeof(int))) {      LOG("Failed to set TCP_NODELAY (%s)", strerror(errno));      goto rollback_sock;    } | 
