From: L. Alberto Giménez Date: Mon, 17 Jan 2011 22:57:51 +0000 (+0100) Subject: Fix trivial compiler warnings X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/commitdiff_plain/8a4839e0036c849faf468e8e888e8465c2c4e5ea?hp=7276d1a65c88b46879b1c253b3dd83673c9f34c0 Fix trivial compiler warnings 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 --- 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");