diff options
author | Ori Bernstein <ori@eigenstate.org> | 2016-11-20 18:44:06 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2016-11-20 18:44:06 -0800 |
commit | 3e24000ddb275369ba68282e2c9406f6b1c23736 (patch) | |
tree | df9966b9604ab4cdb79b0092fd040a38cb6ee6c1 /lib/sys/sys+openbsd-x64.myr | |
parent | 0103ef37062ff55596da4d6ada8f75ae898885bc (diff) | |
download | mc-3e24000ddb275369ba68282e2c9406f6b1c23736.tar.gz |
Fix cut-paste error.
I was supposed to copy, not cut.
Diffstat (limited to 'lib/sys/sys+openbsd-x64.myr')
-rw-r--r-- | lib/sys/sys+openbsd-x64.myr | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sys/sys+openbsd-x64.myr b/lib/sys/sys+openbsd-x64.myr index c267a7b..01ad0bc 100644 --- a/lib/sys/sys+openbsd-x64.myr +++ b/lib/sys/sys+openbsd-x64.myr @@ -676,6 +676,12 @@ const uname = {buf mib[0] = 1 /* CTL_KERN */ mib[1] = 10 /* KERN_HOSTNAME */ + nod = (buf.node[:] : void#) + nodsz = buf.node.len + ret = sysctl(mib[:], nod, &nodsz, (0 : void#), (0 : size#)) + if ret < 0 + -> ret + ;; mib[0] = 1 /* CTL_KERN */ mib[1] = 2 /* KERN_OSRELEASE */ |