lib/transaction_sortdeps.c: there's no need to use TAILQ_FOREACH_SAFE.
This commit is contained in:
@@ -58,10 +58,10 @@ static TAILQ_HEAD(pkgdep_head, pkgdep) pkgdep_list =
|
|||||||
static struct pkgdep *
|
static struct pkgdep *
|
||||||
pkgdep_find(const char *pkg)
|
pkgdep_find(const char *pkg)
|
||||||
{
|
{
|
||||||
struct pkgdep *pd = NULL, *pd_new = NULL;
|
struct pkgdep *pd = NULL;
|
||||||
const char *pkgver, *tract;
|
const char *pkgver, *tract;
|
||||||
|
|
||||||
TAILQ_FOREACH_SAFE(pd, &pkgdep_list, pkgdep_entries, pd_new) {
|
TAILQ_FOREACH(pd, &pkgdep_list, pkgdep_entries) {
|
||||||
if (pd->d == NULL) {
|
if (pd->d == NULL) {
|
||||||
/* ignore entries without dictionary */
|
/* ignore entries without dictionary */
|
||||||
continue;
|
continue;
|
||||||
@@ -90,11 +90,11 @@ pkgdep_find(const char *pkg)
|
|||||||
static int32_t
|
static int32_t
|
||||||
pkgdep_find_idx(const char *pkg)
|
pkgdep_find_idx(const char *pkg)
|
||||||
{
|
{
|
||||||
struct pkgdep *pd, *pd_new;
|
struct pkgdep *pd;
|
||||||
int32_t idx = 0;
|
int32_t idx = 0;
|
||||||
const char *pkgver, *tract;
|
const char *pkgver, *tract;
|
||||||
|
|
||||||
TAILQ_FOREACH_SAFE(pd, &pkgdep_list, pkgdep_entries, pd_new) {
|
TAILQ_FOREACH(pd, &pkgdep_list, pkgdep_entries) {
|
||||||
if (pd->d == NULL) {
|
if (pd->d == NULL) {
|
||||||
/* ignore entries without dictionary */
|
/* ignore entries without dictionary */
|
||||||
idx++;
|
idx++;
|
||||||
|
Reference in New Issue
Block a user