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 /term.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 'term.c')
-rw-r--r-- | term.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -48,7 +48,7 @@ #include <sys/filio.h> #endif -static struct xlat tcxonc_options[] = { +static const struct xlat tcxonc_options[] = { { TCOOFF, "TCOOFF" }, { TCOON, "TCOON" }, { TCIOFF, "TCIOFF" }, @@ -57,7 +57,7 @@ static struct xlat tcxonc_options[] = { }; #ifdef TCLFLSH -static struct xlat tcflsh_options[] = { +static const struct xlat tcflsh_options[] = { { TCIFLUSH, "TCIFLUSH" }, { TCOFLUSH, "TCOFLUSH" }, { TCIOFLUSH, "TCIOFLUSH" }, @@ -65,7 +65,7 @@ static struct xlat tcflsh_options[] = { }; #endif -static struct xlat baud_options[] = { +static const struct xlat baud_options[] = { { B0, "B0" }, { B50, "B50" }, { B75, "B75" }, @@ -140,7 +140,7 @@ static struct xlat baud_options[] = { { 0, NULL }, }; -static struct xlat modem_flags[] = { +static const struct xlat modem_flags[] = { #ifdef TIOCM_LE { TIOCM_LE, "TIOCM_LE", }, #endif |