-fixbuild
authorChristian Grothoff <christian@grothoff.org>
Sun, 15 Jul 2012 15:59:55 +0000 (15:59 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 15 Jul 2012 15:59:55 +0000 (15:59 +0000)
src/util/service.c

index cb2644d743c70bdb34eade10b32db1ae97431e92..af0d0769aa2d6bd3c46b56469d16160cc5ed9a33 100644 (file)
@@ -37,6 +37,7 @@
 #include "gnunet_service_lib.h"
 
 #if HAVE_MALLINFO
+#include <malloc.h>
 #include "gauger.h"
 #endif
 
@@ -1939,7 +1940,7 @@ GNUNET_SERVICE_stop (struct GNUNET_SERVICE_Context *sctx)
       struct mallinfo mi;
       
       mi = mallinfo ();
-      GAUGER (service_name, counter, mi.usmblks, "blocks");
+      GAUGER (sctx->service_name, counter, mi.usmblks, "blocks");
       GNUNET_free (counter);
     }     
   }