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
@@ -201,7 +201,7 @@ void outhex();
+uchr *getline2(); /* getline() is declared in /usr/include/stdio.h */
@@ -561,7 +561,7 @@ char *txtfile, *catalog;
- if (getline(buf, fp) == NULL ||
+ if (getline2(buf, fp) == NULL ||
strncmp(buf, CAT_ENTRY, strlen(CAT_ENTRY))) {
fprintf(stderr, "ERR: 項目 %s がありません\n", CAT_ENTRY);
@@ -571,7 +571,7 @@ char *txtfile, *catalog;
- while (getline(buf, fp) != NULL && *buf != '[') {
+ while (getline2(buf, fp) != NULL && *buf != '[') {
if ((p = getvalue(buf)) == NULL) {
fprintf(stderr, "ERR: line %d: 構文に誤りがあります\n", line);
@@ -666,7 +666,7 @@ char *txtfile, *catalog;
if (strncmp(buf, BOOK_ENTRY, strlen(BOOK_ENTRY))) {
fprintf(stderr, "ERR: line %d: 不明な項目です(%s)\n", line, buf);
- while (getline(buf, fp) != NULL && *buf != '[')
+ while (getline2(buf, fp) != NULL && *buf != '[')
@@ -680,7 +680,7 @@ char *txtfile, *catalog;
- while (getline(buf, fp) != NULL && *buf != '[') {
+ while (getline2(buf, fp) != NULL && *buf != '[') {
if ((p = getvalue(buf)) == NULL) {
fprintf(stderr, "ERR: line %d: 構文に誤りがあります\n", line);
@@ -917,7 +917,7 @@ char *txtfile, *catalog;