} while (0)
-static int debug;
+int debug;
static void display_help(void)
{
}
/* The final place data is sent to the screen/pty/tty */
-bti_output_line(struct session *session, xmlChar *user, xmlChar *id,
- xmlChar *created, xmlChar *text)
+void bti_output_line(struct session *session, xmlChar *user, xmlChar *id,
+ xmlChar *created, xmlChar *text)
{
if (session->verbose)
printf("[%s] {%s} (%.16s) %s\n", user, id, created, text);
free(req_url);
}
+ if (!reply) {
+ fprintf(stderr, "Error retrieving from URL (%s)\n", endpoint);
+ return 1;
+ }
+
if ((session->action != ACTION_UPDATE) &&
(session->action != ACTION_RETWEET))
parse_timeline(reply, session);