aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-01-29 10:33:34 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-01-29 10:33:34 +0000
commit8c69afd992d7cc6c2fc7dea59c3c2bd3f3c21f15 (patch)
tree998a337ecd57b737423a3793365519213f97da72 /procps
parentc882f341cec8451ee87af6746abb7208272d5b1a (diff)
downloadbusybox-w32-8c69afd992d7cc6c2fc7dea59c3c2bd3f3c21f15.tar.gz
busybox-w32-8c69afd992d7cc6c2fc7dea59c3c2bd3f3c21f15.tar.bz2
busybox-w32-8c69afd992d7cc6c2fc7dea59c3c2bd3f3c21f15.zip
- be C99 friendly. Anonymous unions are a GNU extension. This change is
size-neutral WRT -std=gnu99 and fixes several compilation errors for strict C99 mode.
Diffstat (limited to 'procps')
-rw-r--r--procps/top.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/procps/top.c b/procps/top.c
index fc393d43b..4df58f227 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -594,20 +594,20 @@ static void display_topmem_header(int scr_width)
594 /* 9 */ char *anon; 594 /* 9 */ char *anon;
595 /* 10 */ char *map; 595 /* 10 */ char *map;
596 /* 11 */ char *slab; 596 /* 11 */ char *slab;
597 }; 597 } u;
598 char *str[11]; 598 char *str[11];
599 } Z; 599 } Z;
600#define total Z.total 600#define total Z.u.total
601#define mfree Z.mfree 601#define mfree Z.u.mfree
602#define buf Z.buf 602#define buf Z.u.buf
603#define cache Z.cache 603#define cache Z.u.cache
604#define swaptotal Z.swaptotal 604#define swaptotal Z.u.swaptotal
605#define swapfree Z.swapfree 605#define swapfree Z.u.swapfree
606#define dirty Z.dirty 606#define dirty Z.u.dirty
607#define mwrite Z.mwrite 607#define mwrite Z.u.mwrite
608#define anon Z.anon 608#define anon Z.u.anon
609#define map Z.map 609#define map Z.u.map
610#define slab Z.slab 610#define slab Z.u.slab
611#define str Z.str 611#define str Z.str
612 612
613 memset(&Z, 0, sizeof(Z)); 613 memset(&Z, 0, sizeof(Z));