From d9f816f60457930af27349fac3d23b3b78338036 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 4 Sep 2004 03:39:20 +0000 Subject: 2004-09-03 Roland McGrath * 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. --- resource.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'resource.c') diff --git a/resource.c b/resource.c index 3bb464a0e..a32c2e98e 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 #endif -static struct xlat quotacmds[] = { +static const struct xlat quotacmds[] = { { Q_QUOTAON, "Q_QUOTAON" }, { Q_QUOTAOFF, "Q_QUOTAOFF" }, { Q_GETQUOTA, "Q_GETQUOTA" }, -- cgit v1.2.3