Couple of trivial and obvious const-correctness fixes to build code
This commit is contained in:
parent
886c24cfc6
commit
73701e808f
|
@ -2016,7 +2016,7 @@ static int generateBuildIDs(FileList fl, ARGV_t *files)
|
|||
if (addsubdir)
|
||||
argvAddAttr(files, RPMFILE_DIR|RPMFILE_ARTIFACT, buildidsubdir);
|
||||
if (rc == 0) {
|
||||
char *linkpattern, *targetpattern;
|
||||
const char *linkpattern, *targetpattern;
|
||||
char *linkpath, *targetpath;
|
||||
int dups = 0;
|
||||
if (isDbg) {
|
||||
|
@ -2904,7 +2904,8 @@ exit:
|
|||
* a (possibly new) debuginfo subpackage */
|
||||
static void filterDebuginfoPackage(rpmSpec spec, Package pkg,
|
||||
Package maindbg, Package dbgsrc,
|
||||
char *buildroot, char *uniquearch)
|
||||
const char *buildroot,
|
||||
const char *uniquearch)
|
||||
{
|
||||
rpmfi fi;
|
||||
ARGV_t files = NULL;
|
||||
|
|
|
@ -146,7 +146,8 @@ static char *doUntar(rpmSpec spec, uint32_t c, int quietly)
|
|||
|
||||
tar = rpmGetPath("%{__tar}", NULL);
|
||||
if (compressed != COMPRESSED_NOT) {
|
||||
char *zipper, *t = NULL;
|
||||
char *zipper = NULL;
|
||||
const char *t = NULL;
|
||||
int needtar = 1;
|
||||
int needgemspec = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue