Mercurial > hg > octave-kai > gnulib-hg
diff lib/physmem.c @ 4669:c7ad68a45173
(physmem_total, physmem_available, main): Define with prototypes.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 09 Sep 2003 23:28:39 +0000 |
parents | e98bdaad6174 |
children | a48fb0e98c8c |
line wrap: on
line diff
--- a/lib/physmem.c +++ b/lib/physmem.c @@ -82,7 +82,7 @@ /* 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 @@ /* 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 @@ # include <stdlib.h> int -main () +main (void) { printf ("%12.f %12.f\n", physmem_total (), physmem_available ()); exit (0);