--- projects/libstatgrab/src/libstatgrab/memory_stats.c 2006/10/29 23:01:16 1.33 +++ projects/libstatgrab/src/libstatgrab/memory_stats.c 2006/10/30 08:20:05 1.34 @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA * - * $Id: memory_stats.c,v 1.33 2006/10/29 23:01:16 tdb Exp $ + * $Id: memory_stats.c,v 1.34 2006/10/30 08:20:05 tdb Exp $ */ #ifdef HAVE_CONFIG_H @@ -258,7 +258,7 @@ sg_mem_stats *sg_get_mem_stats(){ mib[0] = CTL_VM; mib[1] = VM_METER; size = sizeof(vmtotal); - if (sysctl(mib, 2, &vmtotal, &size, NUSG_ERROR_SYSCTL, 0) < 0) { + if (sysctl(mib, 2, &vmtotal, &size, NULL, 0) < 0) { sg_set_error_with_errno(SG_ERROR_SYSCTL, "CTL_VM.VM_METER"); return NULL;