[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] physmem changes to assume C89 or better
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] physmem changes to assume C89 or better |
Date: |
09 Sep 2003 16:31:06 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
I installed this:
2003-09-09 Paul Eggert <address@hidden>
* physmem.c (physmem_total, physmem_available, main): Define
with prototypes.
Index: lib/physmem.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/physmem.c,v
retrieving revision 1.3
diff -p -u -r1.3 physmem.c
--- lib/physmem.c 15 Aug 2003 03:23:11 -0000 1.3
+++ lib/physmem.c 9 Sep 2003 23:26:09 -0000
@@ -82,7 +82,7 @@ typedef WINBOOL (WINAPI *PFN_MS_EX) (lME
/* Return the total amount of physical memory. */
double
-physmem_total ()
+physmem_total (void)
{
#if defined _SC_PHYS_PAGES && defined _SC_PAGESIZE
{ /* This works on linux-gnu, solaris2 and cygwin. */
@@ -186,7 +186,7 @@ physmem_total ()
/* Return the amount of physical memory available. */
double
-physmem_available ()
+physmem_available (void)
{
#if defined _SC_AVPHYS_PAGES && defined _SC_PAGESIZE
{ /* This works on linux-gnu, solaris2 and cygwin. */
@@ -292,7 +292,7 @@ physmem_available ()
# include <stdlib.h>
int
-main ()
+main (void)
{
printf ("%12.f %12.f\n", physmem_total (), physmem_available ());
exit (0);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] physmem changes to assume C89 or better,
Paul Eggert <=