diff options
author | morganamilo <morganamilo@archlinux.org> | 2020-11-24 13:39:06 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-11-26 12:07:48 +0100 |
commit | 75cfce94682fcd0e9bbeed5db1f97dbb5b1be9e7 (patch) | |
tree | d47bff8eaa5fc827621d969eff24a69bbe48f9e6 /lib | |
parent | 4b8c274f7fc1ecd8cee9176471f081da3323b258 (diff) | |
download | pacman-75cfce94682fcd0e9bbeed5db1f97dbb5b1be9e7.tar.gz pacman-75cfce94682fcd0e9bbeed5db1f97dbb5b1be9e7.tar.xz |
libalpm: clarify alpm_download_event_completed_t status
The comment makes it seem that the result itself is an error code. But
all it does is simply return -1 to indicate an error occured;
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/alpm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 614a530c..6a7323e0 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -728,9 +728,9 @@ typedef struct { /* total bytes in file */ off_t total; /* download result code: - * 0 - download completed successfully - * 1 - the file is up-to-date - * negative - error code + * 0 - download completed successfully + * 1 - the file is up-to-date + * -1 - error */ int result; } alpm_download_event_completed_t; |