projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[gnulib.git]
/
lib
/
physmem.c
diff --git
a/lib/physmem.c
b/lib/physmem.c
index
4f192d1
..
dc67b57
100644
(file)
--- 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
/* 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. */
{
#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
/* 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. */
{
#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
# include <stdlib.h>
int
-main ()
+main (
void
)
{
printf ("%12.f %12.f\n", physmem_total (), physmem_available ());
exit (0);
{
printf ("%12.f %12.f\n", physmem_total (), physmem_available ());
exit (0);