Commit 82a30d6f by Andreas Jaeger

gcov-io.c: Convert prototypes to ISO C90.

	* gcov-io.c: Convert prototypes to ISO C90.
	* gcov-io.h: Likewise.

From-SVN: r68735
parent 37fa72e9
...@@ -90,7 +90,7 @@ gcov_open (const char *name, int mode) ...@@ -90,7 +90,7 @@ gcov_open (const char *name, int mode)
on failure or error flag set. */ on failure or error flag set. */
GCOV_LINKAGE int GCOV_LINKAGE int
gcov_close () gcov_close (void)
{ {
if (gcov_var.file) if (gcov_var.file)
{ {
...@@ -388,7 +388,7 @@ gcov_read_bytes (unsigned bytes) ...@@ -388,7 +388,7 @@ gcov_read_bytes (unsigned bytes)
error, overflow flag on overflow */ error, overflow flag on overflow */
GCOV_LINKAGE gcov_unsigned_t GCOV_LINKAGE gcov_unsigned_t
gcov_read_unsigned () gcov_read_unsigned (void)
{ {
gcov_unsigned_t value = 0; gcov_unsigned_t value = 0;
unsigned ix; unsigned ix;
...@@ -411,7 +411,7 @@ gcov_read_unsigned () ...@@ -411,7 +411,7 @@ gcov_read_unsigned ()
error, overflow flag on overflow */ error, overflow flag on overflow */
GCOV_LINKAGE gcov_type GCOV_LINKAGE gcov_type
gcov_read_counter () gcov_read_counter (void)
{ {
gcov_type value = 0; gcov_type value = 0;
unsigned ix; unsigned ix;
...@@ -438,7 +438,7 @@ gcov_read_counter () ...@@ -438,7 +438,7 @@ gcov_read_counter ()
#if !IN_LIBGCOV #if !IN_LIBGCOV
GCOV_LINKAGE const char * GCOV_LINKAGE const char *
gcov_read_string () gcov_read_string (void)
{ {
unsigned length = gcov_read_unsigned (); unsigned length = gcov_read_unsigned ();
...@@ -506,7 +506,7 @@ gcov_seek (gcov_position_t base) ...@@ -506,7 +506,7 @@ gcov_seek (gcov_position_t base)
/* Return the modification time of the current gcov file. */ /* Return the modification time of the current gcov file. */
GCOV_LINKAGE time_t GCOV_LINKAGE time_t
gcov_time () gcov_time (void)
{ {
struct stat status; struct stat status;
......
...@@ -500,7 +500,7 @@ gcov_position (void) ...@@ -500,7 +500,7 @@ gcov_position (void)
/* Return nonzero if we read to end of file. */ /* Return nonzero if we read to end of file. */
static inline int static inline int
gcov_is_eof () gcov_is_eof (void)
{ {
return !gcov_var.overread; return !gcov_var.overread;
} }
...@@ -508,7 +508,7 @@ gcov_is_eof () ...@@ -508,7 +508,7 @@ gcov_is_eof ()
/* Return nonzero if the error flag is set. */ /* Return nonzero if the error flag is set. */
static inline int static inline int
gcov_is_error () gcov_is_error (void)
{ {
return gcov_var.file ? gcov_var.error : 1; return gcov_var.file ? gcov_var.error : 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment