diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-10 09:07:03 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-10 09:07:03 +0000 |
commit | 8afa24fc2f12067b834b8b15beae34384377e93b (patch) | |
tree | 913a3886bcecc7f5272c60dc36d0bf91dfa80f8f /lib | |
parent | 4c50a3aea2cd490a400bcc363412eee59585b075 (diff) | |
download | coreutils-8afa24fc2f12067b834b8b15beae34384377e93b.tar.xz |
(physmem_total, physmem_available, main): Define with prototypes.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/physmem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/physmem.c b/lib/physmem.c index 4f192d11b..dc67b575c 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 <stdlib.h> int -main () +main (void) { printf ("%12.f %12.f\n", physmem_total (), physmem_available ()); exit (0); |