Skip to content

Instantly share code, notes, and snippets.

@alyx
Created February 19, 2012 16:56
Show Gist options
  • Save alyx/1864627 to your computer and use it in GitHub Desktop.
Save alyx/1864627 to your computer and use it in GitHub Desktop.
From d860acdd324b7be0b264e926b1f76a69c99a27d1 Mon Sep 17 00:00:00 2001
From: Alyx <[email protected]>
Date: Sun, 19 Feb 2012 04:55:57 -0700
Subject: [PATCH] Remove double-declared typedef, change kqueue to use the
correct types when defining things.
---
src/libmowgli/eventloop/eventloop.h | 2 --
src/libmowgli/eventloop/kqueue_pollops.c | 2 +-
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/libmowgli/eventloop/eventloop.h b/src/libmowgli/eventloop/eventloop.h
index ec95e4a..dd6c1d4 100644
--- a/src/libmowgli/eventloop/eventloop.h
+++ b/src/libmowgli/eventloop/eventloop.h
@@ -45,8 +45,6 @@ typedef struct _mowgli_eventloop mowgli_eventloop_t;
typedef struct _mowgli_pollable mowgli_eventloop_pollable_t;
typedef struct _mowgli_helper mowgli_eventloop_helper_proc_t;
-typedef struct _mowgli_linebuf mowgli_linebuf_t;
-
typedef enum {
MOWGLI_EVENTLOOP_IO_READ,
MOWGLI_EVENTLOOP_IO_WRITE,
diff --git a/src/libmowgli/eventloop/kqueue_pollops.c b/src/libmowgli/eventloop/kqueue_pollops.c
index 31100f5..e38b11c 100644
--- a/src/libmowgli/eventloop/kqueue_pollops.c
+++ b/src/libmowgli/eventloop/kqueue_pollops.c
@@ -82,7 +82,7 @@ static void mowgli_kqueue_eventloop_destroy(mowgli_eventloop_t *eventloop, mowgl
static void mowgli_kqueue_eventloop_setselect(mowgli_eventloop_t *eventloop, mowgli_eventloop_pollable_t *pollable, mowgli_eventloop_io_dir_t dir, mowgli_eventloop_io_cb_t *event_function)
{
mowgli_kqueue_eventloop_private_t *priv;
- mowgli_pollevent_dispatch_func_t **fptr;
+ mowgli_eventloop_io_cb_t **fptr;
struct kevent event;
int filter;
bool change;
--
1.7.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment