On Tue, Aug 06, 2013 at 10:16:25AM +0100, Alex Bligh wrote:
> Add a notify pointer to QEMUTimerList so it knows what to notify
> on a timer change.
> 
> Signed-off-by: Alex Bligh <a...@alex.org.uk>
> ---
>  async.c              |    7 ++++++-
>  include/qemu/timer.h |    7 ++++++-
>  qemu-timer.c         |   24 ++++++++++++++++++++++--
>  3 files changed, 34 insertions(+), 4 deletions(-)
> 
> diff --git a/async.c b/async.c
> index 99fb5a8..8daa232 100644
> --- a/async.c
> +++ b/async.c
> @@ -234,6 +234,11 @@ void aio_notify(AioContext *ctx)
>      event_notifier_set(&ctx->notifier);
>  }
>  
> +static void aio_timerlist_notify(void *opaque)
> +{
> +    aio_notify((AioContext *)opaque);

void * is automatically converted to any pointer type.  No need for an
explicit cast, a C compiler doesn't emit a warning here.

Reply via email to