From: Ben Gras Date: Mon, 20 Sep 2010 11:36:41 +0000 (+0000) Subject: lib/libsys/gcov.c - fix gcc warning X-Git-Tag: v3.2.0~826 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch09.html?a=commitdiff_plain;h=250fb23dc00bbc661ef6680788755718724244c8;p=minix.git lib/libsys/gcov.c - fix gcc warning --- 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.