From c1d9c952063904cc492d9538bdd8b75b20c41cd7 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 24 Dec 2012 23:02:41 +0100 Subject: Whoops, remove those debugging printfs as I intended to do before merging. --- protocols/twitter/twitter_lib.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'protocols/twitter/twitter_lib.c') diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 3d368d2e..3ff4b8fc 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -770,24 +770,16 @@ static void twitter_http_stream(struct http_request *req) return; } - printf( "%d bytes in stream\n", req->body_size ); - /* MUST search for CRLF, not just LF: https://dev.twitter.com/docs/streaming-apis/processing#Parsing_responses */ - nl = strstr(req->reply_body, "\r\n"); - - if (!nl) { - printf("Incomplete data\n"); + if (!(nl = strstr(req->reply_body, "\r\n"))) return; - } len = nl - req->reply_body; if (len > 0) { c = req->reply_body[len]; req->reply_body[len] = '\0'; - printf("JSON: %s\n", req->reply_body); - printf("parsed: %p\n", (parsed = json_parse(req->reply_body))); if (parsed) { twitter_stream_handle_object(ic, parsed); } -- cgit v1.2.3