dload: Remove unused ABORT_SIGINT

Message ID Yk0Mp4a/Da76D6H4@chrisdown.name
State Accepted, archived
Headers show
Series dload: Remove unused ABORT_SIGINT | expand

Commit Message

Chris Down April 6, 2022, 3:44 a.m. UTC
The last user of ABORT_SIGINT was removed in commit 84723cab5dfc
("Cleanup the old sequential download code"), and this isn't exported as
part of the public API.

Signed-off-by: Chris Down <chris@chrisdown.name>
---
 lib/libalpm/dload.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Allan McRae July 21, 2022, 10:01 a.m. UTC | #1
On 6/4/22 13:44, Chris Down wrote:
> The last user of ABORT_SIGINT was removed in commit 84723cab5dfc
> ("Cleanup the old sequential download code"), and this isn't exported as
> part of the public API.
> 
> Signed-off-by: Chris Down <chris@chrisdown.name>
> ---

OK.  Thanks!

>   lib/libalpm/dload.c | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
> index 7c27c3ea..4fa17b35 100644
> --- a/lib/libalpm/dload.c
> +++ b/lib/libalpm/dload.c
> @@ -153,8 +153,7 @@ static char *get_fullpath(const char *path, const char *filename,
>   }
>   
>   enum {
> -	ABORT_SIGINT = 1,
> -	ABORT_OVER_MAXFILESIZE
> +	ABORT_OVER_MAXFILESIZE = 1,
>   };
>   
>   static int dload_interrupted;

Patch

diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index 7c27c3ea..4fa17b35 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -153,8 +153,7 @@  static char *get_fullpath(const char *path, const char *filename,
 }
 
 enum {
-	ABORT_SIGINT = 1,
-	ABORT_OVER_MAXFILESIZE
+	ABORT_OVER_MAXFILESIZE = 1,
 };
 
 static int dload_interrupted;