From 4bcdbd830bf18fb0995056acb6beb801df9829ee Mon Sep 17 00:00:00 2001 From: Nick White Date: Sun, 11 Mar 2007 01:54:52 +0000 Subject: Finalised separate cover removal Removed cover entry from issue structure completely, and updated show_struct to reflect the changes git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--patch-19 --- getht.c | 8 ++------ issue.h | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/getht.c b/getht.c index e57f806..5c81e83 100644 --- a/getht.c +++ b/getht.c @@ -342,13 +342,9 @@ void show_iss_struct(iss ** issue, int no_of_issues) printf("Year:\t'%i'\n",issue[iss_no]->date.year); printf("Number of Sections:\t'%i'\n",issue[iss_no]->no_of_sections); - printf("\t-Cover-\n"); - printf("\tTitle:\t'%s'\n", issue[iss_no]->cover.title); - printf("\tURI:\t'%s'\n", issue[iss_no]->cover.uri); - - for(sec_no=0; sec_no < (issue[iss_no]->no_of_sections); sec_no++) + for(sec_no=0; sec_no <= (issue[iss_no]->no_of_sections); sec_no++) { - printf("\t-Section %i-\n", (sec_no+1)); + printf("\t-Section %i-\n", (sec_no)); printf("\tTitle:\t'%s'\n", issue[iss_no]->section[sec_no].title); printf("\tURI:\t'%s'\n", issue[iss_no]->section[sec_no].uri); printf("\tNo. of Items:\t'%i'\n", issue[iss_no]->section[sec_no].no_of_items); diff --git a/issue.h b/issue.h index f9aae18..cfb6e72 100644 --- a/issue.h +++ b/issue.h @@ -64,7 +64,6 @@ typedef struct char title[512]; int size; issdates date; - sec cover; sec section[SEC_NO]; int no_of_sections; med media[MED_NO]; -- cgit v1.2.3