1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-18 00:53:25 +00:00

Correction of getprotobynumber_r() variant detection (musl libc)

This commit is contained in:
Gerhard Rieger 2022-08-13 16:53:11 +02:00
parent ee23bccee7
commit 75cb44bc90
4 changed files with 14 additions and 6 deletions

View file

@ -917,7 +917,7 @@ int tcpan2(int fd, FILE *outfile) {
fd, &tcpinfo, sizeof(tcpinfo), strerror(errno));
return -1;
}
fprintf(outfile, "%s={%u}\t", "TCPI_STATE", tcpinfo.tcpi_state);
fprintf(outfile, "%s={%u}\t", "TCPI_STATE", tcpinfo.tcpi_state);
#if 0 /* on BSD these components are prefixed with __ - I get tired... */
fprintf(outfile, "%s={%u}\t", "TCPI_CA_STATE", tcpinfo.tcpi_ca_state);
fprintf(outfile, "%s={%u}\t", "TCPI_RETRANSMITS", tcpinfo.tcpi_retransmits);