Fixed a bunch of warnings.
* msg_limits.c: (glibtop_get_msg_limits_s): * sem_limits.c: (glibtop_get_sem_limits_s): * shm_limits.c: (glibtop_get_shm_limits_s): Fixed a bunch of warnings.
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
2006-04-02 Benoît Dejean <benoit@placenet.org>
|
||||
|
||||
* msg_limits.c: (glibtop_get_msg_limits_s):
|
||||
* sem_limits.c: (glibtop_get_sem_limits_s):
|
||||
* shm_limits.c: (glibtop_get_shm_limits_s):
|
||||
|
||||
Fixed a bunch of warnings.
|
||||
|
||||
2006-01-23 Benoît Dejean <benoit@placenet.org>
|
||||
|
||||
* procmap.c: (glibtop_get_proc_map_s):
|
||||
|
@@ -52,7 +52,7 @@ glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf)
|
||||
|
||||
memset (buf, 0, sizeof (glibtop_msg_limits));
|
||||
|
||||
msgctl (0, IPC_INFO, (struct msqid_ds *) &msginfo);
|
||||
msgctl (0, IPC_INFO, (void*) &msginfo);
|
||||
|
||||
buf->msgpool = msginfo.msgpool;
|
||||
buf->msgmap = msginfo.msgmap;
|
||||
|
@@ -71,7 +71,7 @@ glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
|
||||
|
||||
buf->flags = _glibtop_sysdeps_sem_limits;
|
||||
|
||||
arg.array = (ushort *) &seminfo;
|
||||
arg.array = (void *) &seminfo;
|
||||
semctl (0, 0, IPC_INFO, arg);
|
||||
|
||||
buf->semmap = seminfo.semmap;
|
||||
|
@@ -51,7 +51,7 @@ glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf)
|
||||
|
||||
memset (buf, 0, sizeof (glibtop_shm_limits));
|
||||
|
||||
shmctl (0, IPC_INFO, (struct shmid_ds *) &shminfo);
|
||||
shmctl (0, IPC_INFO, (void *) &shminfo);
|
||||
|
||||
buf->shmmax = shminfo.shmmax;
|
||||
buf->shmmin = shminfo.shmmin;
|
||||
|
Reference in New Issue
Block a user