Cleanup libuv adapter

This:
  - Removes misplaced libuv function prototype
  - Includes stdlib for free()

Closes #251
This commit is contained in:
torque 2014-07-09 13:38:50 -07:00 committed by Matt Stancliff
parent 40f7035ba4
commit 9c57314489
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#ifndef __HIREDIS_LIBUV_H__
#define __HIREDIS_LIBUV_H__
#include <stdlib.h>
#include <uv.h>
#include "../hiredis.h"
#include "../async.h"
@ -11,7 +12,6 @@ typedef struct redisLibuvEvents {
int events;
} redisLibuvEvents;
int redisLibuvAttach(redisAsyncContext*, uv_loop_t*);
static void redisLibuvPoll(uv_poll_t* handle, int status, int events) {
redisLibuvEvents* p = (redisLibuvEvents*)handle->data;