| ... | @@ -437,7 +437,7 @@ pub fn getAddressList(allocator: *mem.Allocator, name: []const u8, port: u16) !* | ... | @@ -437,7 +437,7 @@ pub fn getAddressList(allocator: *mem.Allocator, name: []const u8, port: u16) !* |
| 437 | const name_c = try std.cstr.addNullByte(allocator, name); | 437 | const name_c = try std.cstr.addNullByte(allocator, name); |
| 438 | defer allocator.free(name_c); | 438 | defer allocator.free(name_c); |
| 439 | | 439 | |
| 440 | const port_c = try std.fmt.allocPrint(allocator, "{}\x00", port); | 440 | const port_c = try std.fmt.allocPrint(allocator, "{}\x00", .{port}); |
| 441 | defer allocator.free(port_c); | 441 | defer allocator.free(port_c); |
| 442 | | 442 | |
| 443 | const hints = os.addrinfo{ | 443 | const hints = os.addrinfo{ |