From: Paul Eggert Date: Tue, 9 Sep 2003 23:28:39 +0000 (+0000) Subject: (physmem_total, physmem_available, main): Define with prototypes. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6375cdce6d77892a57158ceb04ebddab9b361c51;p=pspp (physmem_total, physmem_available, main): Define with prototypes. --- diff --git a/lib/physmem.c b/lib/physmem.c index 4f192d11b2..dc67b575cf 100644 --- a/lib/physmem.c +++ b/lib/physmem.c @@ -82,7 +82,7 @@ typedef WINBOOL (WINAPI *PFN_MS_EX) (lMEMORYSTATUSEX*); /* 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 int -main () +main (void) { printf ("%12.f %12.f\n", physmem_total (), physmem_available ()); exit (0);