Mercurial > gnulib
changeset 24360:3a8f1bcdc3b9
(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 | 059c393c2057 |
children | 62d1c8035baf |
files | lib/physmem.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/physmem.c Tue Sep 09 23:25:33 2003 +0000 +++ b/lib/physmem.c Tue Sep 09 23:28:39 2003 +0000 @@ -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);