add .gitignore
[remotetop.git] / top.h
diff --git a/top.h b/top.h
index e12f537..8fb1dd3 100644 (file)
--- a/top.h
+++ b/top.h
@@ -47,7 +47,6 @@ typedef struct {
         TCMsgTop        top;
         time_t          stamp;
         struct in_addr  ip;
-        u_int32_t       flag;
 } UnitInfo;
 
 typedef struct {
@@ -56,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 );