diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2012-08-06 22:18:15 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2012-12-14 12:35:34 +1000 |
commit | 9cd7ff807dc1014d8335b551524aca1994bb1e0d (patch) | |
tree | 03f8250cb55b527afa0ae3d4466781a06fcbfa2f /lib/libalpm/filelist.h | |
parent | 948f135a73dec553b6e9983740b0e501f3a6e8c2 (diff) | |
download | pacman-9cd7ff807dc1014d8335b551524aca1994bb1e0d.tar.xz |
_alpm_filelist_resolve: add useful return code
Return -1 if a path is too long to resolve or we run out of memory.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/filelist.h')
-rw-r--r-- | lib/libalpm/filelist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/filelist.h b/lib/libalpm/filelist.h index ef865da7..8c4f8eb0 100644 --- a/lib/libalpm/filelist.h +++ b/lib/libalpm/filelist.h @@ -21,9 +21,9 @@ #include "alpm.h" -size_t _alpm_filelist_resolve_link(alpm_filelist_t *files, size_t i, +int _alpm_filelist_resolve_link(alpm_filelist_t *files, size_t *i, char *path, size_t root_len, int resolving); -void _alpm_filelist_resolve(alpm_handle_t *handle, alpm_filelist_t *files); +int _alpm_filelist_resolve(alpm_handle_t *handle, alpm_filelist_t *files); alpm_list_t *_alpm_filelist_difference(alpm_filelist_t *filesA, alpm_filelist_t *filesB); |