Remove unneeded errno debug print

This commit is contained in:
Muaz Ahmad 2024-05-13 03:16:52 +05:00
parent fef2821364
commit 5a995dfd8d

View file

@ -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;