diff options
author | Roland McGrath <roland@redhat.com> | 2004-09-04 03:39:20 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2004-09-04 03:39:20 +0000 |
commit | d9f816f60457930af27349fac3d23b3b78338036 (patch) | |
tree | 3233de8a865dde571d3cdd4150b18b3b0bd18c73 /ipc.c | |
parent | b036f584a0f1bf7b3ac809f84714e50c0c95387e (diff) | |
download | strace-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 'ipc.c')
-rw-r--r-- | ipc.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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" }, |