summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <arch@njw.me.uk>2007-03-11 01:54:52 +0000
committerNick White <arch@njw.me.uk>2007-03-11 01:54:52 +0000
commit4bcdbd830bf18fb0995056acb6beb801df9829ee (patch)
treee148432ff000eb96547fbd5323338f4eb92ae99a
parentde890670aaab99edd839713d4185b77f6ba08d81 (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.c8
-rw-r--r--issue.h1
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];