Remove unneeded errno debug print
This commit is contained in:
parent
fef2821364
commit
5a995dfd8d
1 changed files with 0 additions and 1 deletions
|
@ -31,7 +31,6 @@ fn get_mdns_socket(ip_info: util.IPInfo) !socket {
|
||||||
}
|
}
|
||||||
const timeout: std.c.timeval = .{ .tv_sec = 1, .tv_usec = 0 };
|
const timeout: std.c.timeval = .{ .tv_sec = 1, .tv_usec = 0 };
|
||||||
if (std.c.setsockopt(sock, std.c.SOL.SOCKET, std.c.SO.RCVTIMEO, &timeout, @intCast(@sizeOf(std.c.timeval))) == -1) {
|
if (std.c.setsockopt(sock, std.c.SOL.SOCKET, std.c.SO.RCVTIMEO, &timeout, @intCast(@sizeOf(std.c.timeval))) == -1) {
|
||||||
std.debug.print("{d}\n", .{std.c._errno().*});
|
|
||||||
return MDNSError.SocketSetTimeoutFail;
|
return MDNSError.SocketSetTimeoutFail;
|
||||||
}
|
}
|
||||||
return sock;
|
return sock;
|
||||||
|
|
Loading…
Reference in a new issue