From 922b19d91e600e53ade553ca66b33cae3157b5b4 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Tue, 8 Dec 2015 11:31:02 +0100 Subject: [PATCH] using uint32_t instead of unsigned for GEVENT source listener flags --- src/gevent/gevent.c | 2 +- src/gevent/gevent.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gevent/gevent.c b/src/gevent/gevent.c index 46e643e9..86eb23f0 100644 --- a/src/gevent/gevent.c +++ b/src/gevent/gevent.c @@ -71,7 +71,7 @@ void geventListenerInit(GListener *pl) { pl->flags = 0; } -bool_t geventAttachSource(GListener *pl, GSourceHandle gsh, unsigned flags) { +bool_t geventAttachSource(GListener *pl, GSourceHandle gsh, uint32_t flags) { GSourceListener *psl, *pslfree; // Safety first diff --git a/src/gevent/gevent.h b/src/gevent/gevent.h index 31e3e898..27e91d37 100644 --- a/src/gevent/gevent.h +++ b/src/gevent/gevent.h @@ -69,8 +69,8 @@ typedef struct GSource_t GSource, *GSourceHandle; typedef struct GSourceListener_t { GListener *pListener; // The listener GSource *pSource; // The source - unsigned listenflags; // The flags the listener passed when the source was assigned to it. - unsigned srcflags; // For the source's exclusive use. Initialised as 0 for a new listener source assignment. + uint32_t listenflags; // The flags the listener passed when the source was assigned to it. + uint32_t srcflags; // For the source's exclusive use. Initialised as 0 for a new listener source assignment. } GSourceListener; /*===========================================================================*/ @@ -130,7 +130,7 @@ void geventListenerInit(GListener *pl); * * @return TRUE if succeeded, FALSE otherwise */ -bool_t geventAttachSource(GListener *pl, GSourceHandle gsh, unsigned flags); +bool_t geventAttachSource(GListener *pl, GSourceHandle gsh, uint32_t flags); /** * @brief Detach a source from a listener