Author: mlschroe Date: Mon Oct 29 12:20:32 2007 New Revision: 7680 URL: http://svn.opensuse.org/viewcvs/zypp?rev=7680&view=rev Log: - cleanup strange code Modified: trunk/sat-solver/tools/repo_helix.c Modified: trunk/sat-solver/tools/repo_helix.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/repo_helix.c?rev=7680&r1=7679&r2=7680&view=diff ============================================================================== --- trunk/sat-solver/tools/repo_helix.c (original) +++ trunk/sat-solver/tools/repo_helix.c Mon Oct 29 12:20:32 2007 @@ -632,20 +632,15 @@ char *cflavor = strdup(flavor); /* make pointer safe */ Id npr; - Id pid, *pidp; + Id pid; /* this is either a kernel package or a kmp */ if (s->provides) { - int prov; + Offset prov = s->provides; npr = 0; - for ( prov = s->provides; ( pidp = pd->repo->idarraydata + prov) != 0; ++prov) + while ((pid = pd->repo->idarraydata[prov++]) != 0) { - if (!*pidp) - break; - - pid = *pidp; - const char *depname = 0; Reldep *prd = 0; @@ -680,16 +675,10 @@ if (s->requires) { - int reqs; + Offset reqs = s->requires; npr = 0; - - for ( reqs = s->requires; ( pidp = pd->repo->idarraydata + reqs) != 0; ++reqs) + while ((pid = pd->repo->idarraydata[reqs++]) != 0) { - if (!*pidp) - break; - - pid = *pidp; - const char *depname = 0; Reldep *prd = 0; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org