const char *s;
if (! initialized) {
- const char *patt = rpmExpand("%{?_langpatt}", NULL);
+ char *patt = rpmExpand("%{?_langpatt}", NULL);
int rc = 0;
if (!(patt && *patt != '\0'))
rc = 1;
{
static const char * av_ckfile[] = { "%{?__check_files}", NULL };
StringBuf sb_stdout = NULL;
- const char * s;
+ char * s;
int rc;
s = rpmExpand(av_ckfile[0], NULL);
rpmRC rc = RPMRC_OK;
int xx;
- { const char *fmode = rpmExpand(fmodeMacro, NULL);
+ { char *fmode = rpmExpand(fmodeMacro, NULL);
if (!(fmode && fmode[0] == 'w'))
fmode = xstrdup("w9.gzdio");
(void) Fflush(fdo);
FD_t ifd = NULL;
int32_t count, sigtag;
const char * sigtarget = NULL;;
- const char * rpmio_flags = NULL;
+ char * rpmio_flags = NULL;
const char * SHA1 = NULL;
char *s;
char buf[BUFSIZ];
providePackageNVR(pkg->header);
- { const char * optflags = rpmExpand("%{optflags}", NULL);
+ { char * optflags = rpmExpand("%{optflags}", NULL);
(void) headerAddEntry(pkg->header, RPMTAG_OPTFLAGS, RPM_STRING_TYPE,
optflags, 1);
optflags = _free(optflags);
*/
static int checkForValidArchitectures(rpmSpec spec)
{
- const char *arch = rpmExpand("%{_target_cpu}", NULL);
- const char *os = rpmExpand("%{_target_os}", NULL);
+ char *arch = rpmExpand("%{_target_cpu}", NULL);
+ char *os = rpmExpand("%{_target_os}", NULL);
if (isMemberInEntry(spec->buildRestrictions,
arch, RPMTAG_EXCLUDEARCH) == 1) {
for (ot = optionalTags; ot->ot_mac != NULL; ot++) {
if (!headerIsEntry(h, ot->ot_tag)) {
- const char *val = rpmExpand(ot->ot_mac, NULL);
+ char *val = rpmExpand(ot->ot_mac, NULL);
if (val && *val != '%')
(void) headerAddEntry(h, ot->ot_tag, RPM_STRING_TYPE, (void *)val, 1);
val = _free(val);
const char ** fm;
for (fm = fixmacs; *fm; fm++) {
- const char *fix;
- fix = rpmExpand(*fm, " .", NULL);
+ char * fix = rpmExpand(*fm, " .", NULL);
if (fix && *fix != '%')
appendLineStringBuf(spec->prep, fix);
fix = _free(fix);
if (!spec->readStack->reading && !strncmp("%if", s, sizeof("%if")-1)) {
match = 0;
} else if (! strncmp("%ifarch", s, sizeof("%ifarch")-1)) {
- const char *arch = rpmExpand("%{_target_cpu}", NULL);
+ char *arch = rpmExpand("%{_target_cpu}", NULL);
s += 7;
match = matchTok(arch, s);
arch = _free(arch);
} else if (! strncmp("%ifnarch", s, sizeof("%ifnarch")-1)) {
- const char *arch = rpmExpand("%{_target_cpu}", NULL);
+ char *arch = rpmExpand("%{_target_cpu}", NULL);
s += 8;
match = !matchTok(arch, s);
arch = _free(arch);
} else if (! strncmp("%ifos", s, sizeof("%ifos")-1)) {
- const char *os = rpmExpand("%{_target_os}", NULL);
+ char *os = rpmExpand("%{_target_os}", NULL);
s += 5;
match = matchTok(os, s);
os = _free(os);
} else if (! strncmp("%ifnos", s, sizeof("%ifnos")-1)) {
- const char *os = rpmExpand("%{_target_os}", NULL);
+ char *os = rpmExpand("%{_target_os}", NULL);
s += 6;
match = !matchTok(os, s);
os = _free(os);
/* Check for description in each package and add arch and os */
{
- const char *platform = rpmExpand("%{_target_platform}", NULL);
- const char *arch = rpmExpand("%{_target_cpu}", NULL);
- const char *os = rpmExpand("%{_target_os}", NULL);
+ char *platform = rpmExpand("%{_target_platform}", NULL);
+ char *arch = rpmExpand("%{_target_cpu}", NULL);
+ char *os = rpmExpand("%{_target_os}", NULL);
for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) {
if (!headerIsEntry(pkg->header, RPMTAG_DESCRIPTION)) {
int rpmfcExec(ARGV_t av, StringBuf sb_stdin, StringBuf * sb_stdoutp,
int failnonzero)
{
- const char * s = NULL;
+ char * s = NULL;
ARGV_t xav = NULL;
ARGV_t pav = NULL;
int pac = 0;
char buf[BUFSIZ];
const char * s;
struct stat sb, * st = &sb;
- const char * soname = NULL;
+ char * soname = NULL;
rpmds * depsp, ds;
rpm_tag_t tagN;
int32_t dsContext;
Header h;
speclines sl = spec->sl;
spectags st = spec->st;
- const char * msgstr = NULL;
+ char * msgstr = NULL;
int i, j;
if (sl == NULL || st == NULL)
case RPMLOOKUPSIG_QUERY:
if (disabled)
break; /* Disabled */
- { const char *name = rpmExpand("%{?_signature}", NULL);
+ { char *name = rpmExpand("%{?_signature}", NULL);
if (!(name && *name != '\0'))
rc = 0;
else if (!xstrcasecmp(name, "none"))
switch (sigTag) {
case RPMSIGTAG_DSA:
case RPMSIGTAG_GPG:
- { const char *name = rpmExpand("%{?_gpg_name}", NULL);
+ { char *name = rpmExpand("%{?_gpg_name}", NULL);
aok = (name && *name != '\0');
name = _free(name);
}
case RPMSIGTAG_RSA:
case RPMSIGTAG_PGP5: /* XXX legacy */
case RPMSIGTAG_PGP:
- { const char *name = rpmExpand("%{?_pgp_name}", NULL);
+ { char *name = rpmExpand("%{?_pgp_name}", NULL);
aok = (name && *name != '\0');
name = _free(name);
}
uint32_t prefcolor = rpmtsPrefColor(ts);
uint32_t otecolor, tecolor;
uint32_t oFColor, FColor;
- const char * altNEVR = NULL;
+ char * altNEVR = NULL;
rpmfi otherFi = NULL;
int numReplaced = 0;
rpmps ps;
if (rc == 0) {
rpmps ps = rpmtsProblems(ts);
- const char * altNEVR = headerGetNEVRA(h, NULL);
+ char * altNEVR = headerGetNEVRA(h, NULL);
rpmpsAppend(ps, RPMPROB_OLDPACKAGE,
rpmteNEVRA(p), rpmteKey(p),
NULL, NULL,
const char ** languages;
const char * dn, * bn;
size_t dnlen, bnlen;
- const char * s;
+ char * s;
int * drc;
char * dff;
int dc;
if (!noDocs)
noDocs = rpmExpandNumeric("%{_excludedocs}");
- { const char *tmpPath = rpmExpand("%{_netsharedpath}", NULL);
+ { char *tmpPath = rpmExpand("%{_netsharedpath}", NULL);
if (tmpPath && *tmpPath != '%')
netsharedPaths = splitString(tmpPath, strlen(tmpPath), ':');
tmpPath = _free(tmpPath);
}
ts->ignoreSet = ignoreSet;
- { const char * currDir = currentDirectory();
+ { char * currDir = currentDirectory();
rpmtsSetCurrDir(ts, currDir);
currDir = _free(currDir);
}
FD_t fd;
int fileno;
PyObject * list;
- const char * kwlist[] = {"fd", NULL};
+ char * kwlist[] = {"fd", NULL};
if (!PyArg_ParseTupleAndKeywords(args, kwds, "i", kwlist, &fileno))
return NULL;
{
PyObject * result = NULL;
rpm_tag_t tag = RPMTAG_REMOVETID;
- const char * globstr;
+ char * globstr;
IDTX idtx;
if (_rpmts_debug)
{
rpmts ts = NULL;
poptContext optCon;
- const char * s;
+ char * s;
FTS * ftsp;
FTSENT * fts;
int ec = 1;