summaryrefslogtreecommitdiff
path: root/resource.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2004-09-04 03:39:20 +0000
committerRoland McGrath <roland@redhat.com>2004-09-04 03:39:20 +0000
commitd9f816f60457930af27349fac3d23b3b78338036 (patch)
tree3233de8a865dde571d3cdd4150b18b3b0bd18c73 /resource.c
parentb036f584a0f1bf7b3ac809f84714e50c0c95387e (diff)
downloadstrace-d9f816f60457930af27349fac3d23b3b78338036.tar.gz
strace-d9f816f60457930af27349fac3d23b3b78338036.tar.bz2
strace-d9f816f60457930af27349fac3d23b3b78338036.tar.xz
2004-09-03 Roland McGrath <roland@redhat.com>
* util.c (xlookup, printxval, addflags, printflags): Use const for struct xlat * argument. * defs.h (xlookup, printxval, addflags, printflags): Update decls. * bjm.c: Add const to all struct xlat defns. * desc.c: Likewise. * file.c: Likewise. * ipc.c: Likewise. * mem.c: Likewise. * net.c: Likewise. * proc.c: Likewise. * process.c: Likewise. * resource.c: Likewise. * signal.c: Likewise. * sock.c: Likewise. * stream.c: Likewise. * system.c: Likewise. * term.c: Likewise. * time.c: Likewise. * util.c: Likewise.
Diffstat (limited to 'resource.c')
-rw-r--r--resource.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/resource.c b/resource.c
index 3bb464a..a32c2e9 100644
--- a/resource.c
+++ b/resource.c
@@ -59,7 +59,7 @@
#define sys_setrlimit64 sys_setrlimit
#endif
-static struct xlat resources[] = {
+static const struct xlat resources[] = {
#ifdef RLIMIT_CPU
{ RLIMIT_CPU, "RLIMIT_CPU" },
#endif
@@ -220,7 +220,7 @@ struct tcb *tcp;
#ifndef SVR4
-static struct xlat usagewho[] = {
+static const struct xlat usagewho[] = {
{ RUSAGE_SELF, "RUSAGE_SELF" },
{ RUSAGE_CHILDREN, "RUSAGE_CHILDREN" },
#ifdef RUSAGE_BOTH
@@ -388,7 +388,7 @@ struct tcb *tcp;
#endif /* LINUX */
-static struct xlat priorities[] = {
+static const struct xlat priorities[] = {
{ PRIO_PROCESS, "PRIO_PROCESS" },
{ PRIO_PGRP, "PRIO_PGRP" },
{ PRIO_USER, "PRIO_USER" },
@@ -461,7 +461,7 @@ struct tcb *tcp;
#define XQM_COMMAND(c) (( ((c) >> SUBCMDSHIFT) & ('X' << 8)) == ('X' << 8))
#define OLD_COMMAND(c) (!NEW_COMMAND(c) && !XQM_COMMAND(c))
-static struct xlat quotacmds[] = {
+static const struct xlat quotacmds[] = {
{ Q_QUOTAON, "Q_QUOTAON" },
{ Q_QUOTAOFF, "Q_QUOTAOFF" },
{ Q_GETQUOTA, "Q_GETQUOTA" },
@@ -488,7 +488,7 @@ static struct xlat quotacmds[] = {
{ 0, NULL },
};
-static struct xlat quotatypes[] = {
+static const struct xlat quotatypes[] = {
{ USRQUOTA, "USRQUOTA" },
{ GRPQUOTA, "GRPQUOTA" },
{ 0, NULL },
@@ -549,7 +549,7 @@ struct tcb *tcp;
#include <ufs/ufs/quota.h>
#endif
-static struct xlat quotacmds[] = {
+static const struct xlat quotacmds[] = {
{ Q_QUOTAON, "Q_QUOTAON" },
{ Q_QUOTAOFF, "Q_QUOTAOFF" },
{ Q_GETQUOTA, "Q_GETQUOTA" },