Skip to content

Commit

Permalink
Fix some warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Jun 14, 2014
1 parent a7f457e commit 44e4c9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/rdns_ev.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ rdns_libev_add_read (void *priv_data, int fd, void *user_data)
ev->data = user_data;
ev_io_start ((struct ev_loop *)priv_data, ev);
}
return (void *)ev;
return ptr;
}

static void
Expand Down Expand Up @@ -172,7 +172,7 @@ rdns_libev_add_periodic (void *priv_data, double after,
rdns_periodic_callback cb, void *user_data)
{
ev_timer *ev;
struct rdns_ev_periodic_cbdata *cbdata;
struct rdns_ev_periodic_cbdata *cbdata = NULL;

ev = (ev_timer *)malloc (sizeof (ev_timer));
if (ev != NULL) {
Expand Down

0 comments on commit 44e4c9b

Please sign in to comment.