From 250fb23dc00bbc661ef6680788755718724244c8 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 20 Sep 2010 11:36:41 +0000 Subject: [PATCH] lib/libsys/gcov.c - fix gcc warning --- lib/libsys/gcov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libsys/gcov.c b/lib/libsys/gcov.c index a116d3a30..9a8a70d7b 100644 --- a/lib/libsys/gcov.c +++ b/lib/libsys/gcov.c @@ -80,7 +80,7 @@ size_t _gcov_fwrite(void *ptr, size_t itemsize, size_t nitems, FILE *stream) { int size = itemsize * nitems; - if(!gcov_enable) return NULL; + if(!gcov_enable) return -1; /* only have one file open at a time to ensure writes go * to the right place. -- 2.44.0