diff options
author | Nick White <arch@njw.me.uk> | 2007-03-11 01:54:52 +0000 |
---|---|---|
committer | Nick White <arch@njw.me.uk> | 2007-03-11 01:54:52 +0000 |
commit | 4bcdbd830bf18fb0995056acb6beb801df9829ee (patch) | |
tree | e148432ff000eb96547fbd5323338f4eb92ae99a | |
parent | de890670aaab99edd839713d4185b77f6ba08d81 (diff) |
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
-rw-r--r-- | getht.c | 8 | ||||
-rw-r--r-- | issue.h | 1 |
2 files changed, 2 insertions, 7 deletions
@@ -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); @@ -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]; |