diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-12-24 23:02:41 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-12-24 23:02:41 +0100 | 
| commit | c1d9c952063904cc492d9538bdd8b75b20c41cd7 (patch) | |
| tree | bee202119a8cf383e660385a9e536ac4f76a6aab /protocols/twitter/twitter_lib.c | |
| parent | 9b672857d1d395307f1bfac988a347d724e13eee (diff) | |
Whoops, remove those debugging printfs as I intended to do before merging.
Diffstat (limited to 'protocols/twitter/twitter_lib.c')
| -rw-r--r-- | protocols/twitter/twitter_lib.c | 10 | 
1 files changed, 1 insertions, 9 deletions
| 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);  		} | 
