From: Ben Gras Date: Mon, 13 Sep 2010 15:50:54 +0000 (+0000) Subject: lib: fixes to make clang not error X-Git-Tag: v3.2.0~884 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.conf.5.html?a=commitdiff_plain;h=23311d9819f472ed453c1d895104aff2d1f1af5a;p=minix.git lib: fixes to make clang not error --- diff --git a/lib/libc/other/gcov.c b/lib/libc/other/gcov.c index b49657ca9..5ce8a3996 100644 --- a/lib/libc/other/gcov.c +++ b/lib/libc/other/gcov.c @@ -16,8 +16,7 @@ int gcov_flush_svr(char *buff, int buff_sz, int server_nr) * buffer the stdio requests, and copy the buffer to this user * space */ - _syscall(VFS_PROC_NR, GCOV_FLUSH, &msg); - return; + return _syscall(VFS_PROC_NR, GCOV_FLUSH, &msg); } diff --git a/lib/libsys/gcov.c b/lib/libsys/gcov.c index 2d020b343..a116d3a30 100644 --- a/lib/libsys/gcov.c +++ b/lib/libsys/gcov.c @@ -55,7 +55,7 @@ static void add_int(int value) FILE *_gcov_fopen(char *name, char *mode) { - if(!gcov_enable) return; + if(!gcov_enable) return NULL; assert(!gcov_opened); @@ -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; + if(!gcov_enable) return NULL; /* only have one file open at a time to ensure writes go * to the right place. @@ -98,7 +98,7 @@ size_t _gcov_fwrite(void *ptr, size_t itemsize, size_t nitems, FILE *stream) int _gcov_fclose(FILE *stream) { - if(!gcov_enable) return; + if(!gcov_enable) return EOF; add_int(GCOVOP_CLOSE); assert(gcov_opened);