This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[janitor] Convert gcov-io.* to ISO C90
- From: Andreas Jaeger <aj at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 Jun 2003 21:42:26 +0200
- Subject: [janitor] Convert gcov-io.* to ISO C90
Bootstrapped/regtested i686-linux-gnu, committed as pre-approved,
Andreas
2003-06-30 Andreas Jaeger <aj@suse.de>
* gcov-io.c: Convert prototypes to ISO C90.
* gcov-io.h: Likewise.
============================================================
Index: gcc/gcov-io.c
--- gcc/gcov-io.c 23 Jun 2003 15:27:37 -0000 1.9
+++ gcc/gcov-io.c 30 Jun 2003 19:41:39 -0000
@@ -90,7 +90,7 @@ gcov_open (const char *name, int mode)
on failure or error flag set. */
GCOV_LINKAGE int
-gcov_close ()
+gcov_close (void)
{
if (gcov_var.file)
{
@@ -388,7 +388,7 @@ gcov_read_bytes (unsigned bytes)
error, overflow flag on overflow */
GCOV_LINKAGE gcov_unsigned_t
-gcov_read_unsigned ()
+gcov_read_unsigned (void)
{
gcov_unsigned_t value = 0;
unsigned ix;
@@ -411,7 +411,7 @@ gcov_read_unsigned ()
error, overflow flag on overflow */
GCOV_LINKAGE gcov_type
-gcov_read_counter ()
+gcov_read_counter (void)
{
gcov_type value = 0;
unsigned ix;
@@ -438,7 +438,7 @@ gcov_read_counter ()
#if !IN_LIBGCOV
GCOV_LINKAGE const char *
-gcov_read_string ()
+gcov_read_string (void)
{
unsigned length = gcov_read_unsigned ();
@@ -506,7 +506,7 @@ gcov_seek (gcov_position_t base)
/* Return the modification time of the current gcov file. */
GCOV_LINKAGE time_t
-gcov_time ()
+gcov_time (void)
{
struct stat status;
============================================================
Index: gcc/gcov-io.h
--- gcc/gcov-io.h 29 Jun 2003 13:53:08 -0000 1.38
+++ gcc/gcov-io.h 30 Jun 2003 19:41:39 -0000
@@ -500,7 +500,7 @@ gcov_position (void)
/* Return nonzero if we read to end of file. */
static inline int
-gcov_is_eof ()
+gcov_is_eof (void)
{
return !gcov_var.overread;
}
@@ -508,7 +508,7 @@ gcov_is_eof ()
/* Return nonzero if the error flag is set. */
static inline int
-gcov_is_error ()
+gcov_is_error (void)
{
return gcov_var.file ? gcov_var.error : 1;
}
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126