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:
@@ -1,3 +1,10 @@
|
||||
2004-05-25 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* loadavg.c: (glibtop_get_loadavg_s):
|
||||
* msg_limits.c:
|
||||
* sem_limits.c:
|
||||
* shm_limits.c: Added missing const qualifiers.
|
||||
|
||||
2004-03-09 Bastien Nocera <hadess@hadess.net>
|
||||
|
||||
* procargs.c: (glibtop_get_proc_args_s):
|
||||
|
@@ -52,7 +52,7 @@ glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf)
|
||||
kstat_ctl_t *kc;
|
||||
kstat_t *ksp;
|
||||
int i;
|
||||
static char *avestrings[] = { "avenrun_1min",
|
||||
static const char *avestrings[] = { "avenrun_1min",
|
||||
"avenrun_5min",
|
||||
"avenrun_15min" };
|
||||
#endif
|
||||
|
@@ -27,7 +27,7 @@
|
||||
#include <kvm.h>
|
||||
#include <sys/msg.h>
|
||||
|
||||
static struct nlist nlst[] = { {"msginfo"}, {NULL} };
|
||||
static const struct nlist nlst[] = { {"msginfo"}, {NULL} };
|
||||
static const unsigned long _glibtop_sysdeps_msg_limits =
|
||||
#if GLIBTOP_SOLARIS_RELEASE <= 570
|
||||
(1L << GLIBTOP_IPC_MSGMAP) + (1L << GLIBTOP_IPC_MSGSSZ) +
|
||||
|
@@ -27,7 +27,7 @@
|
||||
#include <kvm.h>
|
||||
#include <sys/sem.h>
|
||||
|
||||
static struct nlist nlst[] = { {"seminfo"}, {NULL} };
|
||||
static const struct nlist nlst[] = { {"seminfo"}, {NULL} };
|
||||
static const unsigned long _glibtop_sysdeps_sem_limits =
|
||||
#if GLIBTOP_SOLARIS_RELEASE <= 570
|
||||
(1L << GLIBTOP_IPC_SEMMAP) +
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user