Skip to content

Commit 4ee2fdf

Browse files
committed
uname
1 parent cd273da commit 4ee2fdf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/analytics/analytics_thread.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ pub const GenerateHeader = struct {
226226
pub fn forLinux() Analytics.Platform {
227227
linux_os_name = std.mem.zeroes(@TypeOf(linux_os_name));
228228

229-
std.c.uname(&linux_os_name);
229+
_ = std.c.uname(&linux_os_name);
230230

231-
const release = std.mem.span(linux_os_name.release);
232-
const version = std.mem.sliceTo(std.mem.span(linux_os_name.version).ptr, @as(u8, 0));
231+
const release = std.mem.span(&linux_os_name.release);
232+
const version = std.mem.sliceTo(std.mem.span(&linux_os_name.version).ptr, @as(u8, 0));
233233
// Linux DESKTOP-P4LCIEM 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
234234
if (std.mem.indexOf(u8, release, "microsoft") != null) {
235235
return Analytics.Platform{ .os = Analytics.OperatingSystem.wsl, .version = version, .arch = platform_arch };

0 commit comments

Comments
 (0)