diff _lxcstats.h @ 6:e2b88f50e136

cpuacct: replace strtoll by strtoul and replace sscanf by strsplit + strtoul
author Louis Opter <louis@dotcloud.com>
date Sat, 01 Jan 2011 16:18:17 +0100
parents 50215911acb3
children 8339ab15527d
line wrap: on
line diff
--- a/_lxcstats.h	Sat Jan 01 16:05:08 2011 +0100
+++ b/_lxcstats.h	Sat Jan 01 16:18:17 2011 +0100
@@ -4,7 +4,9 @@
 # include "compat/compat.h"
 # include "probes/probes.h"
 
-# define NSEC_PER_SEC 1000000000L
+# define NSEC_PER_SEC   1000000000L
+
+# define ARRAY_SIZE(a)  (sizeof((a)) / sizeof((a)[0]))
 
 struct      dirent;