1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

* Removed unnecessary #define

* Added comment for something I noticed while looking through code
This commit is contained in:
Dan McGee 2007-02-16 22:41:51 +00:00
parent c40c2e1137
commit 8e34023bbd
2 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,6 @@ alpm_list_t *alpm_list_nth(alpm_list_t *list, int n);
alpm_list_t *alpm_list_next(alpm_list_t *list);
alpm_list_t *alpm_list_last(alpm_list_t *list);
void *alpm_list_getdata(const alpm_list_t *entry);
#define alpm_list_data(type, list) (type)alpm_list_getdata((list))
/* misc */
int alpm_list_count(const alpm_list_t *list);

View File

@ -138,6 +138,7 @@ alpm_list_t *_alpm_sortbydeps(alpm_list_t *targets, pmtranstype_t mode)
for(i = newtargs; i; i = i->next) {
pmpkg_t *p = (pmpkg_t*)i->data;
_alpm_log(PM_LOG_DEBUG, "sorting %s", p->name);
/* TODO this may not always work if p->data is a fd, not db */
_alpm_db_read(p->data, INFRQ_DEPENDS, p);
for(j = p->depends; j; j = j->next) {
pmdepend_t dep;