From 043d3860d9ca8d769af845b41bbc5aba2d899caa Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 13 Jun 2011 21:18:23 +0200 Subject: [PATCH] Silence g++ warning `type qualifiers ignored on function return type`. Closes #54 --- uv-common.c | 2 +- uv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uv-common.c b/uv-common.c index 921ac20d..c5d04ecf 100644 --- a/uv-common.c +++ b/uv-common.c @@ -28,7 +28,7 @@ static uv_counters_t counters; -uv_counters_t* const uv_counters() { +uv_counters_t* uv_counters() { return &counters; } diff --git a/uv.h b/uv.h index cd48fde6..fd7b7312 100644 --- a/uv.h +++ b/uv.h @@ -386,7 +386,7 @@ typedef struct { uint64_t timer_init; } uv_counters_t; -uv_counters_t* const uv_counters(); +uv_counters_t* uv_counters(); #ifdef __cplusplus }