diff srogue/daemon.c @ 120:d6b7c3fb37ea

srogue: add and use more md_* portable functions. Privileges and memory usage checks are now more portable.
author John "Elwin" Edwards
date Fri, 02 May 2014 15:06:23 -0700
parents f2951c4e28d9
children 94a0d9dd5ce1
line wrap: on
line diff
--- a/srogue/daemon.c	Wed Apr 30 14:46:30 2014 -0700
+++ b/srogue/daemon.c	Fri May 02 15:06:23 2014 -0700
@@ -173,5 +173,5 @@
 activity()
 {
 	msg("Daemons = %d : Memory Items = %d : Memory Used = %d",
-	    demoncnt,total,sbrk(0));
+	    demoncnt,total,md_memused());
 }