From c7368a41ec90cd7317a0a48b6cec3128b5798e5b Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Mon, 22 Apr 2024 10:48:24 +0100 Subject: [PATCH] Remove exit() call from flip2.c --- src/flip2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flip2.c b/src/flip2.c index 7372580f..d23cd231 100644 --- a/src/flip2.c +++ b/src/flip2.c @@ -451,7 +451,7 @@ static int flip2_paged_load(const PROGRAMMER *pgm, const AVRPART *part, const AV if (n_bytes > INT_MAX) { /* This should never happen, unless the int type is only 16 bits. */ pmsg_error("attempting to read more than %d bytes\n", INT_MAX); - exit(1); + return -1; } result = flip2_read_memory(FLIP2(pgm)->dfu, mem_unit, addr, @@ -482,7 +482,7 @@ static int flip2_paged_write(const PROGRAMMER *pgm, const AVRPART *part, const A if (n_bytes > INT_MAX) { /* This should never happen, unless the int type is only 16 bits. */ pmsg_error("attempting to read more than %d bytes\n", INT_MAX); - exit(1); + return -1; } result = flip2_write_memory(FLIP2(pgm)->dfu, mem_unit, addr,