]> ToastFreeware Gitweb - gregoa/bti.git/blobdiff - config.c
send_request needs to return a negative error value.
[gregoa/bti.git] / config.c
index 7315c6962fe9db53cbaeebfe706e538bd1df1ac8..346fed8ceaacc83d4b86d2c7f68424a9d4df9f35 100644 (file)
--- 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.
                 */
        }
                 * the value.
                 */
        }
-       printf("%s = %s\n", *key, *value);
+       /* printf("%s = %s\n", *key, *value); */
        return 0;
 }
 
        return 0;
 }
 
@@ -309,7 +309,10 @@ static void process_line(struct session *session, char *key, char *value)
                        break;
 
                if (strncasecmp(item->key, key, strlen(item->key)) == 0) {
                        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;
                        result = item->callback(session, value);
                        if (!result)
                                return;