From 75cfce94682fcd0e9bbeed5db1f97dbb5b1be9e7 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Tue, 24 Nov 2020 12:39:06 +0000 Subject: 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 --- lib/libalpm/alpm.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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; -- cgit v1.2.3-70-g09d2