diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-03-07 08:20:03 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-03-07 08:20:03 +0200 |
commit | 3be0a4b2f863e213af45b0495254108c13415a1f (patch) | |
tree | 5e5bcff1c5aef0b81762a58140081e1231c01057 /lib/rpmgi.c | |
parent | 2e3972aebf3db7a6fce83619ea106b80145ed923 (diff) | |
download | rpm-3be0a4b2f863e213af45b0495254108c13415a1f.tar.gz |
Another pile of read-only constants marked as such..
Diffstat (limited to 'lib/rpmgi.c')
-rw-r--r-- | lib/rpmgi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rpmgi.c b/lib/rpmgi.c index d65d0cccf..0adddd14e 100644 --- a/lib/rpmgi.c +++ b/lib/rpmgi.c @@ -53,9 +53,7 @@ struct rpmgi_s { int nrefs; /*!< Reference count. */ }; -static int indent = 2; - -static const char * ftsInfoStrings[] = { +static const char * const ftsInfoStrings[] = { "UNKNOWN", "D", "DC", @@ -213,6 +211,8 @@ static rpmRC rpmgiWalkPathFilter(rpmgi gi) FTSENT * fts = gi->fts; rpmRC rpmrc = RPMRC_NOTFOUND; const char * s; + static const int indent = 2; + if (_rpmgi_debug < 0) rpmlog(RPMLOG_DEBUG, "FTS_%s\t%*s %s%s\n", ftsInfoStr(fts->fts_info), |