summaryrefslogtreecommitdiff
path: root/libiberty/physmem.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-03-28 05:07:08 +0000
committerDJ Delorie <dj@redhat.com>2005-03-28 05:07:08 +0000
commit1e45deed6a87c05c9e669e3cdfdda47cbfa9531d (patch)
treee2c1bba3c03c5917c8e70792a921dfc6b6b5eef9 /libiberty/physmem.c
parent49b1fae4309ab5b9833f0af388483c2b6b4b3d50 (diff)
downloadbinutils-gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.tar.gz
merge from gcc
Diffstat (limited to 'libiberty/physmem.c')
-rw-r--r--libiberty/physmem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libiberty/physmem.c b/libiberty/physmem.c
index f64e07c74d4..9c6d9cb8059 100644
--- a/libiberty/physmem.c
+++ b/libiberty/physmem.c
@@ -1,5 +1,5 @@
/* Calculate the size of physical memory.
- Copyright 2000, 2001, 2003 Free Software Foundation, Inc.
+ Copyright 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -80,7 +80,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. */
@@ -184,7 +184,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. */
@@ -290,7 +290,7 @@ physmem_available ()
# include <stdlib.h>
int
-main ()
+main (void)
{
printf ("%12.f %12.f\n", physmem_total (), physmem_available ());
exit (0);