Skip to content

Commit b9f630e

Browse files
committed
remove errorneous fd declaration
1 parent b3a18da commit b9f630e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

network.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@
11321132
hi.ai\_socktype = SOCK\_STREAM; hi.ai\_flags = AI\_PASSIVE;
11331133
\emprg{getaddrinfo}(NULL, portstr, &hi, &rorig);
11341134
for (r = rorig; r != NULL; r = r->ai\_next) \{
1135-
int fd = \emprg{socket}(r->ai\_family, r->ai\_socktype,
1135+
fd = \emprg{socket}(r->ai\_family, r->ai\_socktype,
11361136
r->ai\_protocol);
11371137
if (!\emprg{bind}(fd, r->ai\_addr, r->ai\_addrlen)) break;
11381138
\}

0 commit comments

Comments
 (0)