Browse files

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 <agimenez@sysvalve.es>
  • Loading branch information...
1 parent 7276d1a commit 8a4839e0036c849faf468e8e888e8465c2c4e5ea @agimenez agimenez committed Jan 17, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 bti.c
  2. +2 −2 config.c
View
2 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)
View
4 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");

0 comments on commit 8a4839e

Please sign in to comment.