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. --- ipc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ipc.c') diff --git a/ipc.c b/ipc.c index 3755ab5..1a26472 100644 --- a/ipc.c +++ b/ipc.c @@ -67,10 +67,10 @@ # define IPC_64 0x100 #endif -extern struct xlat openmodes[]; +extern const struct xlat openmodes[]; extern void printsigevent(struct tcb *tcp, long arg); -static struct xlat msgctl_flags[] = { +static const struct xlat msgctl_flags[] = { { IPC_RMID, "IPC_RMID" }, { IPC_SET, "IPC_SET" }, { IPC_STAT, "IPC_STAT" }, @@ -82,7 +82,7 @@ static struct xlat msgctl_flags[] = { { 0, NULL }, }; -static struct xlat semctl_flags[] = { +static const struct xlat semctl_flags[] = { { IPC_RMID, "IPC_RMID" }, { IPC_SET, "IPC_SET" }, { IPC_STAT, "IPC_STAT" }, @@ -101,7 +101,7 @@ static struct xlat semctl_flags[] = { { 0, NULL }, }; -static struct xlat shmctl_flags[] = { +static const struct xlat shmctl_flags[] = { { IPC_RMID, "IPC_RMID" }, { IPC_SET, "IPC_SET" }, { IPC_STAT, "IPC_STAT" }, @@ -119,7 +119,7 @@ static struct xlat shmctl_flags[] = { { 0, NULL }, }; -static struct xlat resource_flags[] = { +static const struct xlat resource_flags[] = { { IPC_CREAT, "IPC_CREAT" }, { IPC_EXCL, "IPC_EXCL" }, { IPC_NOWAIT, "IPC_NOWAIT" }, @@ -129,7 +129,7 @@ static struct xlat resource_flags[] = { { 0, NULL }, }; -static struct xlat shm_flags[] = { +static const struct xlat shm_flags[] = { #ifdef LINUX { SHM_REMAP, "SHM_REMAP" }, #endif /* LINUX */ @@ -138,7 +138,7 @@ static struct xlat shm_flags[] = { { 0, NULL }, }; -static struct xlat msg_flags[] = { +static const struct xlat msg_flags[] = { { MSG_NOERROR, "MSG_NOERROR" }, #ifdef LINUX { MSG_EXCEPT, "MSG_EXCEPT" }, -- cgit v1.2.3