X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Funame.psi;h=b7aed9652e7e26dbad3f4201465017165166e236;hp=c79cc8e8cb0aab1b4bf705f20f7f143d12624042;hb=cfebc76ed7426836f21296cca9a14b422bfa04cf;hpb=4b5ceb304b924c50eaf8263ad394493ff806fed4 diff --git a/psi.d/uname.psi b/psi.d/uname.psi index c79cc8e..b7aed96 100644 --- a/psi.d/uname.psi +++ b/psi.d/uname.psi @@ -1,5 +1,5 @@ function psi\uname(array &$u = NULL) : int { - let name = calloc(1, struct utsname); + let name = calloc(1, psi\SIZEOF_STRUCT_UTSNAME); return to_int(uname); set $u = to_array(*name, to_string(sysname), @@ -8,4 +8,4 @@ function psi\uname(array &$u = NULL) : int { to_string(version), to_string(machine), to_string(domainname)); -} \ No newline at end of file +}