Skip to content

Commit

Permalink
Revert "network: errno should be already negative"
Browse files Browse the repository at this point in the history
  • Loading branch information
rgetz authored Feb 25, 2020
1 parent 490c4aa commit 499a0bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network.c
Original file line number Diff line number Diff line change
Expand Up @@ -1484,7 +1484,7 @@ struct iio_context * network_create_context(const char *host)

fd = create_socket(res, DEFAULT_TIMEOUT_MS);
if (fd < 0) {
errno = fd;
errno = -fd;
goto err_free_addrinfo;
}

Expand Down

0 comments on commit 499a0bc

Please sign in to comment.