From efd4da3c41402c05a0f16aa8d58fe45c6321f681 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 7 Jan 2013 11:08:05 +0100 Subject: [PATCH] Make a few functions static (private) The functions getbyte_stream, ungetbyte_stream and yaz_gets are now private. They were never declared in a header file. --- src/cqlstdio.c | 4 ++-- src/marc_read_line.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cqlstdio.c b/src/cqlstdio.c index ccd9dde..8eebab1 100644 --- a/src/cqlstdio.c +++ b/src/cqlstdio.c @@ -12,7 +12,7 @@ #include -int getbyte_stream(void *client_data) +static int getbyte_stream(void *client_data) { FILE *f = (FILE*) client_data; @@ -22,7 +22,7 @@ int getbyte_stream(void *client_data) return c; } -void ungetbyte_stream (int c, void *client_data) +static void ungetbyte_stream(int c, void *client_data) { FILE *f = (FILE*) client_data; diff --git a/src/marc_read_line.c b/src/marc_read_line.c index 684a522..123f475 100644 --- a/src/marc_read_line.c +++ b/src/marc_read_line.c @@ -24,10 +24,10 @@ #include #include -int yaz_gets(int (*getbyte)(void *client_data), - void (*ungetbyte)(int b, void *client_data), - void *client_data, - WRBUF w) +static int yaz_gets(int (*getbyte)(void *client_data), + void (*ungetbyte)(int b, void *client_data), + void *client_data, + WRBUF w) { size_t sz = 0; int ch = getbyte(client_data); -- 1.7.10.4