aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2011-06-03 20:25:17 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-06-03 20:25:17 +0200
commitf3854f789c68cfdcfe760de064a291d5203a2499 (patch)
treeefa3b1d80bec0853bcebbb308e644d623d58d214
parent56a3b82e9692a25ef9c9269e88feac0d579ce8e8 (diff)
downloadbusybox-w32-f3854f789c68cfdcfe760de064a291d5203a2499.tar.gz
busybox-w32-f3854f789c68cfdcfe760de064a291d5203a2499.tar.bz2
busybox-w32-f3854f789c68cfdcfe760de064a291d5203a2499.zip
replace nonstandard unsigned typedefs
Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/ipcs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c
index 33035c62e..ee7df5e33 100644
--- a/util-linux/ipcs.c
+++ b/util-linux/ipcs.c
@@ -55,11 +55,11 @@
55#define SHM_INFO 14 55#define SHM_INFO 14
56struct shm_info { 56struct shm_info {
57 int used_ids; 57 int used_ids;
58 ulong shm_tot; /* total allocated shm */ 58 unsigned long shm_tot; /* total allocated shm */
59 ulong shm_rss; /* total resident shm */ 59 unsigned long shm_rss; /* total resident shm */
60 ulong shm_swp; /* total swapped shm */ 60 unsigned long shm_swp; /* total swapped shm */
61 ulong swap_attempts; 61 unsigned long swap_attempts;
62 ulong swap_successes; 62 unsigned long swap_successes;
63}; 63};
64#endif 64#endif
65 65
@@ -267,7 +267,7 @@ static NOINLINE void do_sem(void)
267 struct passwd *pw; 267 struct passwd *pw;
268 union semun arg; 268 union semun arg;
269 269
270 arg.array = (ushort *) (void *) &seminfo; 270 arg.array = (unsigned short *) (void *) &seminfo;
271 maxid = semctl(0, 0, SEM_INFO, arg); 271 maxid = semctl(0, 0, SEM_INFO, arg);
272 if (maxid < 0) { 272 if (maxid < 0) {
273 printf("kernel not configured for %s\n", "semaphores"); 273 printf("kernel not configured for %s\n", "semaphores");
@@ -277,7 +277,7 @@ static NOINLINE void do_sem(void)
277 switch (format) { 277 switch (format) {
278 case LIMITS: 278 case LIMITS:
279 printf("------ Semaphore %s --------\n", "Limits"); 279 printf("------ Semaphore %s --------\n", "Limits");
280 arg.array = (ushort *) (void *) &seminfo; /* damn union */ 280 arg.array = (unsigned short *) (void *) &seminfo; /* damn union */
281 if ((semctl(0, 0, IPC_INFO, arg)) < 0) 281 if ((semctl(0, 0, IPC_INFO, arg)) < 0)
282 return; 282 return;
283 printf("max number of arrays = %d\n" 283 printf("max number of arrays = %d\n"