auxilary/os: correct sysctl use in os_get_total_physical_memory()
authorJonathan Gray <jsg@jsg.id.au>
Sun, 22 Feb 2015 08:19:25 +0000 (19:19 +1100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 27 Feb 2015 23:17:22 +0000 (23:17 +0000)
commit7983a3d2e06b0bc16c1a16bddccc7f14fe1f132c
tree3c6658263f62d1a7a5bfe139461176b3b6360a9c
parent667dac9d40760822e0e4be750c3a18fe56ec4b40
auxilary/os: correct sysctl use in os_get_total_physical_memory()

The length argument passed to sysctl was the size of the pointer
not the type.  The result of this is sysctl calls would fail on
32 bit BSD/Mac OS X.

Additionally the wrong pointer was passed as an argument to store
the result of the sysctl call.

Cc: "10.4, 10.5" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/auxiliary/os/os_misc.c