From: Greg Kroah-Hartman Date: Fri, 18 Feb 2011 23:48:37 +0000 (-0800) Subject: send_request needs to return a negative error value. X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/commitdiff_plain/f4584ef10960213549bd55790efb9a73eef37c7d send_request needs to return a negative error value. Signed-off-by: Greg Kroah-Hartman --- diff --git a/bti.c b/bti.c index 9fb5f54..147d44b 100644 --- a/bti.c +++ b/bti.c @@ -726,7 +726,7 @@ static int send_request(struct session *session) if (!reply) { fprintf(stderr, "Error retrieving from URL (%s)\n", endpoint); - return 1; + return -EIO; } if ((session->action != ACTION_UPDATE) &&