Mercurial > hg > octave-lojdl > gnulib-hg
changeset 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 | 00d938cc4d73 |
children | 11c0cb234663 |
files | lib/physmem.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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);