version 1.24 | | version 1.25 |
---|
| | |
/* | | /* |
* static char *rcsid_readable_c = | | * static char *rcsid_readable_c = |
* "$Id: readable.c,v 1.24 2005/10/24 19:49:10 akirschbaum Exp $"; | | * "$Id: readable.c,v 1.25 2005/10/28 19:08:53 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
if ((fp = open_and_uncompress (fname, 0, &comp)) != NULL) | | if ((fp = open_and_uncompress (fname, 0, &comp)) != NULL) |
{ | | { |
int i = 0, value, type = 0; | | int value, type = 0; |
| | size_t i; |
| | |
while (fgets (buf, MAX_BUF, fp) != NULL) | | while (fgets (buf, MAX_BUF, fp) != NULL) |
{ | | { |
if (*buf == '#') | | if (*buf == '#') |
| | |
} | | } |
} | | } |
LOG (llevDebug, " book archives(used/avail): "); | | LOG (llevDebug, " book archives(used/avail): "); |
bl = booklist; | | for (bl = booklist, i = 0; bl != NULL && i < sizeof(max_titles)/sizeof(*max_titles); bl = bl->next, i++) |
while (bl && i < sizeof(max_titles)/sizeof(*max_titles)) | | |
{ | | { |
LOG (llevDebug, "(%d/%d)", bl->number, max_titles[i]); | | LOG (llevDebug, "(%d/%d)", bl->number, max_titles[i]); |
bl = bl->next; | | |
i++; | | |
} | | } |
LOG (llevDebug, "\n"); | | LOG (llevDebug, "\n"); |
close_and_delete (fp, comp); | | close_and_delete (fp, comp); |