Adapt for changes in tedtools
[remotetop.git] / top.h
diff --git a/top.h b/top.h
index 64a8f1b..8fb1dd3 100644 (file)
--- a/top.h
+++ b/top.h
@@ -55,7 +55,7 @@ typedef struct {
         UnitInfo   units[1];
 } MassiveUnit;
 
-#define MUHDRSZ         (2*sizeof(u_int32_t))
+#define MUHDRSZ         offsetof( MassiveUnit, units )
 
 MassiveUnit *allocUnits(int n);
 void fillUnit( MassiveUnit* mu, UnitInfo *unit );