diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 15:53:38 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 15:53:38 +0300 |
commit | add59e49eab87e98cf3ef6bedb8ce0c251199376 (patch) | |
tree | 36f2b691db7091c0184962b4236d5085d2fc61f0 /build | |
parent | 7723fef2646e0670fc782ee5248317bb6d8f9383 (diff) | |
download | rpm-add59e49eab87e98cf3ef6bedb8ce0c251199376.tar.gz rpm-add59e49eab87e98cf3ef6bedb8ce0c251199376.tar.bz2 rpm-add59e49eab87e98cf3ef6bedb8ce0c251199376.zip |
Const pedantry: taropts only ever points to string constants
Diffstat (limited to 'build')
-rw-r--r-- | build/parsePrep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/build/parsePrep.c b/build/parsePrep.c index 3952acc7c..7e9105628 100644 --- a/build/parsePrep.c +++ b/build/parsePrep.c @@ -136,7 +136,8 @@ static char *doUntar(rpmSpec spec, uint32_t c, int quietly) { char *fn; char *buf = NULL; - char *tar, *taropts; + char *tar; + const char *taropts = ((rpmIsVerbose() && !quietly) ? "-xvvf" : "-xf"); struct Source *sp; rpmCompressedMagic compressed = COMPRESSED_NOT; @@ -156,9 +157,6 @@ static char *doUntar(rpmSpec spec, uint32_t c, int quietly) fn = rpmGetPath("%{_sourcedir}/", sp->source, NULL); - /* FIX: shrug */ - taropts = ((rpmIsVerbose() && !quietly) ? "-xvvf" : "-xf"); - #ifdef AUTOFETCH_NOT /* XXX don't expect this code to be enabled */ /* XXX * XXX If nosource file doesn't exist, try to fetch from url. |