diff options
author | Dan McGee <dan@archlinux.org> | 2007-01-30 04:46:33 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-01-30 04:46:33 +0100 |
commit | 1799afc9c144381150e181cee3a03a506b3e1d31 (patch) | |
tree | 5bfad94c39c4766a0b73b87b31924a58dae2d684 /lib/libalpm/trans.c | |
parent | 358a4a62f325c0f043005cff72d79b813d2a318f (diff) | |
download | pacman-1799afc9c144381150e181cee3a03a506b3e1d31.tar.gz pacman-1799afc9c144381150e181cee3a03a506b3e1d31.tar.xz |
Discussed on IRC for a bit, this makes the following changes for clarity:
* alpm_list_is_in --> alpm_list_find
* alpm_list_is_strin --> alpm_list_find_str
* Flip parameters of both functions to be inline with rest of alpm_list.
First commit, woohoo.
Diffstat (limited to 'lib/libalpm/trans.c')
-rw-r--r-- | lib/libalpm/trans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 75d3489b..005fa243 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -116,7 +116,7 @@ int _alpm_trans_addtarget(pmtrans_t *trans, char *target) ASSERT(trans != NULL, RET_ERR(PM_ERR_TRANS_NULL, -1)); ASSERT(target != NULL, RET_ERR(PM_ERR_WRONG_ARGS, -1)); - if(alpm_list_is_strin(target, trans->targets)) { + if(alpm_list_find_str(trans->targets, target)) { RET_ERR(PM_ERR_TRANS_DUP_TARGET, -1); } |