From 6981c596ece878ff581556a719608513f88208ae Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto@cante.net>
Date: Sat, 9 Jan 2010 20:40:44 +0200
Subject: [PATCH] Rename getline() to getline2() to avoid clash
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
catdump.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/catdump.c b/catdump.c
index b40bb27..8874db8 100644
a
|
b
|
void outhex(); |
201 | 201 | void outstr(); |
202 | 202 | void outjstr(); |
203 | 203 | int undump(); |
204 | | uchr *getline(); |
| 204 | uchr *getline2(); /* getline() is declared in /usr/include/stdio.h */ |
205 | 205 | uchr *getvalue(); |
206 | 206 | int gethex(); |
207 | 207 | int hexdigit(); |
… |
… |
char *txtfile, *catalog; |
561 | 561 | err = 0; |
562 | 562 | line = 0; |
563 | 563 | |
564 | | if (getline(buf, fp) == NULL || |
| 564 | if (getline2(buf, fp) == NULL || |
565 | 565 | strncmp(buf, CAT_ENTRY, strlen(CAT_ENTRY))) { |
566 | 566 | fprintf(stderr, "ERR: ¹àÌÜ %s ¤¬¤¢¤ê¤Þ¤»¤ó\n", CAT_ENTRY); |
567 | 567 | fclose(fp); |
… |
… |
char *txtfile, *catalog; |
571 | 571 | st = 0; |
572 | 572 | hdr = (HDR_T *)catbuf; |
573 | 573 | mask = 0L; |
574 | | while (getline(buf, fp) != NULL && *buf != '[') { |
| 574 | while (getline2(buf, fp) != NULL && *buf != '[') { |
575 | 575 | if ((p = getvalue(buf)) == NULL) { |
576 | 576 | fprintf(stderr, "ERR: line %d: ¹½Ê¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹\n", line); |
577 | 577 | err++; |
… |
… |
char *txtfile, *catalog; |
666 | 666 | if (strncmp(buf, BOOK_ENTRY, strlen(BOOK_ENTRY))) { |
667 | 667 | fprintf(stderr, "ERR: line %d: ÉÔÌÀ¤Ê¹àÌܤǤ¹(%s)\n", line, buf); |
668 | 668 | err++; |
669 | | while (getline(buf, fp) != NULL && *buf != '[') |
| 669 | while (getline2(buf, fp) != NULL && *buf != '[') |
670 | 670 | ; |
671 | 671 | if (*buf == '\0') |
672 | 672 | break; |
… |
… |
char *txtfile, *catalog; |
680 | 680 | break; |
681 | 681 | } |
682 | 682 | mask = 0; |
683 | | while (getline(buf, fp) != NULL && *buf != '[') { |
| 683 | while (getline2(buf, fp) != NULL && *buf != '[') { |
684 | 684 | if ((p = getvalue(buf)) == NULL) { |
685 | 685 | fprintf(stderr, "ERR: line %d: ¹½Ê¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹\n", line); |
686 | 686 | err++; |
… |
… |
char *txtfile, *catalog; |
917 | 917 | } |
918 | 918 | |
919 | 919 | uchr * |
920 | | getline(buf, fp) |
| 920 | getline2(buf, fp) |
921 | 921 | uchr *buf; |
922 | 922 | FILE *fp; |
923 | 923 | { |