Added missing const qualifiers.

* loadavg.c: (glibtop_get_loadavg_s):
	* msg_limits.c:
	* sem_limits.c:
	* shm_limits.c: Added missing const qualifiers.
This commit is contained in:
Benoît Dejean
2004-05-25 17:07:20 +00:00
parent b15f542bfc
commit 74453855aa
5 changed files with 11 additions and 4 deletions

View File

@@ -27,7 +27,7 @@
#include <kvm.h>
#include <sys/shm.h>
static struct nlist nlst[] = { {"shminfo"}, {NULL} };
static const struct nlist nlst[] = { {"shminfo"}, {NULL} };
static const unsigned long _glibtop_sysdeps_shm_limits =
(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
(1L << GLIBTOP_IPC_SHMMNI) + (1L << GLIBTOP_IPC_SHMSEG);