X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/blobdiff_plain/aa0b2bbbfe637eddd30d9eaad0ecfa33b2d045e8..37a84bdcca02fc32e9e44c60ce297da2479ffc0a:/config.c diff --git a/config.c b/config.c index 63b10c2..346fed8 100644 --- a/config.c +++ b/config.c @@ -140,7 +140,7 @@ static int get_key(struct session *session, char *line, char **key, char **value * the value. */ } - printf("%s = %s\n", *key, *value); + /* printf("%s = %s\n", *key, *value); */ return 0; } @@ -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; @@ -309,7 +309,10 @@ void process_line(struct session *session, char *key, char *value) break; if (strncasecmp(item->key, key, strlen(item->key)) == 0) { - printf("calling %p, for key = '%s' and value = '%s'\n", item->callback, key, value); + /* + * printf("calling %p, for key = '%s' and value = * '%s'\n", + * item->callback, key, value); + */ result = item->callback(session, value); if (!result) return; @@ -325,7 +328,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");