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 /bjm.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 'bjm.c')
-rw-r--r-- | bjm.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -77,7 +77,7 @@ struct module_info long usecount; }; -static struct xlat which[] = { +static const struct xlat which[] = { { 0, "0" }, { QM_MODULES, "QM_MODULES" }, { QM_DEPS, "QM_DEPS" }, @@ -87,7 +87,7 @@ static struct xlat which[] = { { 0, NULL }, }; -static struct xlat modflags[] = { +static const struct xlat modflags[] = { { MOD_UNINITIALIZED, "MOD_UNINITIALIZED" }, { MOD_RUNNING, "MOD_RUNNING" }, { MOD_DELETED, "MOD_DELETED" }, @@ -148,7 +148,7 @@ struct tcb *tcp; } free(data); } - } else + } else tprintf(" /* %Zu entries */ ", ret); tprintf("}, %Zu", ret); } else if (tcp->u_arg[1]==QM_SYMBOLS) { @@ -204,4 +204,3 @@ struct tcb *tcp; return 0; } #endif /* LINUX */ - |