DBC *dbc = 0;
int byteswapped;
unsigned int dbid;
- unsigned char *dp, *dbidp;
+ unsigned char *dp;
int dl, nrpmids;
struct rpmid *rpmids, *rp;
int i;
perror("db->cursor");
exit(1);
}
- dbidp = (unsigned char *)&dbid;
rpmheadsize = 0;
rpmhead = 0;
i = 0;
perror("db->cursor");
exit(1);
}
- dbidp = (unsigned char *)&dbid;
nrpmids = 0;
rpmids = 0;
while (dbc->c_get(dbc, &dbkey, &dbdata, DB_NEXT) == 0)
/* sort rpmids */
sat_sort(rpmids, nrpmids, sizeof(*rpmids), rpmids_sort_cmp, 0);
- dbidp = (unsigned char *)&dbid;
rpmheadsize = 0;
rpmhead = 0;
rpm_byfp(FILE *fp, const char *name, void **statep)
{
struct rpm_by_state *state = *statep;
- int headerstart, headerend;
+ /* int headerstart, headerend; */
RpmHead *rpmhead;
int sigdsize, sigcnt, l;
unsigned char lead[4096];
}
sigdsize += sigcnt * 16;
sigdsize = (sigdsize + 7) & ~7;
- headerstart = 96 + 16 + sigdsize;
+ /* headerstart = 96 + 16 + sigdsize; */
while (sigdsize)
{
l = sigdsize > 4096 ? 4096 : sigdsize;
return 0;
}
l = sigdsize + sigcnt * 16;
- headerend = headerstart + 16 + l;
+ /* headerend = headerstart + 16 + l; */
if (l > state->rpmheadsize)
{
state->rpmheadsize = l + 128;
unsigned char keyid[8];
unsigned int kcr = 0, maxex = 0;
unsigned char *pubkey = 0;
- int pubkeyl = 0;
unsigned char *userid = 0;
+#if 0
+ int pubkeyl = 0;
int useridl = 0;
+#endif
for (; pl; p += l, pl -= l)
{
pubkey = sat_realloc(pubkey, l);
if (l)
memcpy(pubkey, p, l);
+#if 0
pubkeyl = l;
+#endif
kcr = 0;
if (p[0] == 3)
{
{
int j, ql, haveissuer;
unsigned char *q;
- unsigned int ex = 0, scr = 0;
+ unsigned int ex = 0;
+#if 0
+ unsigned int scr = 0;
+#endif
unsigned char issuer[8];
// printf("V4 signature packet\n");
memcpy(issuer, q + 1, 8);
haveissuer = 1;
}
+#if 0
if (x == 2 && j == 0)
scr = q[1] << 24 | q[2] << 16 | q[3] << 8 | q[4];
+#endif
if (x == 9 && j == 0)
ex = q[1] << 24 | q[2] << 16 | q[3] << 8 | q[4];
q += sl;
userid = sat_realloc(userid, l);
if (l)
memcpy(userid, p, l);
+#if 0
useridl = l;
+#endif
}
}
if (maxex)
*/
case STATE_UPDATE:
{
- const char *from = 0, *status = 0, *type = 0, *version = 0;
+ const char *from = 0, *type = 0, *version = 0;
for (; *atts; atts += 2)
{
if (!strcmp(*atts, "from"))
from = atts[1];
- else if (!strcmp(*atts, "status"))
- status = atts[1];
else if (!strcmp(*atts, "type"))
type = atts[1];
else if (!strcmp(*atts, "version"))
*/
case STATE_PACKAGE:
{
- const char *arch = 0, *name = 0, *src = 0;
+ const char *arch = 0, *name = 0;
Id evr = makeevr_atts(pool, pd, atts); /* parse "epoch", "version", "release" */
Id n, a = 0;
Id rel_id;
arch = atts[1];
else if (!strcmp(*atts, "name"))
name = atts[1];
- else if (!strcmp(*atts, "src"))
- src = atts[1];
}
/* generated Id for name */
n = str2id(pool, name, 1);