summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core.c b/src/core.c
index 4855f42..24fee79 100644
--- a/src/core.c
+++ b/src/core.c
@@ -304,19 +304,11 @@ static void og_client_timer_cb(struct ev_loop *loop, ev_timer *timer, int events
static void og_agent_send_refresh(struct og_client *cli)
{
struct og_msg_params params;
- int err;
params.ips_array[0] = inet_ntoa(cli->addr.sin_addr);
params.ips_array_len = 1;
- err = og_send_request(OG_METHOD_GET, OG_CMD_REFRESH, &params, NULL);
- if (err < 0) {
- syslog(LOG_ERR, "Can't send refresh to: %s\n",
- params.ips_array[0]);
- } else {
- syslog(LOG_INFO, "Sent refresh to: %s\n",
- params.ips_array[0]);
- }
+ og_send_request(OG_METHOD_GET, OG_CMD_REFRESH, &params, NULL);
}
/* Shut down connection if there is no complete message after 10 seconds. */