From: Adam Dickmeiss Date: Mon, 7 Jan 2013 10:08:05 +0000 (+0100) Subject: Make a few functions static (private) X-Git-Tag: v4.2.48~3 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;ds=sidebyside;h=efd4da3c41402c05a0f16aa8d58fe45c6321f681;p=yaz-moved-to-github.git 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. --- 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);