-/*
+/*
Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
This program is free software; you can redistribute it and/or modify
if (rpc->is_connected == 0) {
events |= POLLOUT;
- }
+ }
if (rpc->outqueue) {
events |= POLLOUT;
rpc_set_error(rpc, "connect() to server failed");
printf("%s\n", rpc->error_string);
return -4;
- }
+ }
return 0;
-}
+}
int rpc_disconnect(struct rpc_context *rpc, char *error)
{