From 8a4839e0036c849faf468e8e888e8465c2c4e5ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?L=2E=20Alberto=20Gim=C3=A9nez?= Date: Mon, 17 Jan 2011 23:57:51 +0100 Subject: [PATCH 1/1] Fix trivial compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Converted bti_output_line and process_line to static, fixed a variable type to match the getline prototype (returnins a signed value). Signed-off-by: L. Alberto Giménez --- bti.c | 2 +- config.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bti.c b/bti.c index f6479f8..9c3b7f4 100644 --- a/bti.c +++ b/bti.c @@ -284,7 +284,7 @@ static CURL *curl_init(void) } /* The final place data is sent to the screen/pty/tty */ -void bti_output_line(struct session *session, xmlChar *user, xmlChar *id, +static void bti_output_line(struct session *session, xmlChar *user, xmlChar *id, xmlChar *created, xmlChar *text) { if (session->verbose) diff --git a/config.c b/config.c index 63b10c2..7315c69 100644 --- a/config.c +++ b/config.c @@ -295,7 +295,7 @@ static struct config_function config_table[] = { { NULL, NULL } }; -void process_line(struct session *session, char *key, char *value) +static void process_line(struct session *session, char *key, char *value) { struct config_function *item; int result; @@ -325,7 +325,7 @@ void bti_parse_configfile(struct session *session) char *key = NULL; char *value = NULL; size_t len = 0; - size_t n; + ssize_t n; char *c; config_file = fopen(session->configfile, "r"); -- 2.39.5