From: Paul Eggert Date: Wed, 3 Sep 2003 06:15:32 +0000 (+0000) Subject: (read_and): Abort if HEADER_SUCCESS_EXTENDED occurs, as it's not X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=a546fc7c2122b97719bcdae6a0deef17603b652e;p=chaz%2Ftar (read_and): Abort if HEADER_SUCCESS_EXTENDED occurs, as it's not possible. Pass false to read_header, not 0. --- diff --git a/src/list.c b/src/list.c index 80ea0e1..e5e187f 100644 --- a/src/list.c +++ b/src/list.c @@ -76,10 +76,11 @@ read_and (void (*do_something) (void)) while (1) { prev_status = status; - status = read_header (0); + status = read_header (false); switch (status) { case HEADER_STILL_UNREAD: + case HEADER_SUCCESS_EXTENDED: abort (); case HEADER_SUCCESS: @@ -159,6 +160,9 @@ read_and (void (*do_something) (void)) case HEADER_FAILURE: /* We are in the middle of a cascade of errors. */ break; + + case HEADER_SUCCESS_EXTENDED: + abort (); } continue; }