* fhandler.cc (fhandler_base::puts_readahead): Remove default parameter

setting.  Newer gcc's complain about this.
(fhandler_base::set_readahead_valid): Ditto.
* fhandler_dsp.cc (Audio::open): Ditto.
(fhandler_dev_dsp::open): Ditto.
This commit is contained in:
Christopher Faylor 2002-02-19 22:06:50 +00:00
parent 7416292611
commit aa6df8d7d4
3 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2002-02-19 Christopher Faylor <cgf@redhat.com>
* fhandler.cc (fhandler_base::puts_readahead): Remove default parameter
setting. Newer gcc's complain about this.
(fhandler_base::set_readahead_valid): Ditto.
* fhandler_dsp.cc (Audio::open): Ditto.
(fhandler_dev_dsp::open): Ditto.
2002-02-19 Christopher Faylor <cgf@redhat.com> 2002-02-19 Christopher Faylor <cgf@redhat.com>
* fork.cc (fork_parent): Use sec_user_nih to control process/thread * fork.cc (fork_parent): Use sec_user_nih to control process/thread

View File

@ -49,7 +49,7 @@ fhandler_base::operator =(fhandler_base &x)
} }
int int
fhandler_base::puts_readahead (const char *s, size_t len = (size_t) -1) fhandler_base::puts_readahead (const char *s, size_t len)
{ {
int success = 1; int success = 1;
while ((*s || (len != (size_t) -1 && len--)) while ((*s || (len != (size_t) -1 && len--))
@ -98,7 +98,7 @@ fhandler_base::peek_readahead (int queryput)
} }
void void
fhandler_base::set_readahead_valid (int val, int ch = -1) fhandler_base::set_readahead_valid (int val, int ch)
{ {
if (!val) if (!val)
ralen = raixget = raixput = 0; ralen = raixget = raixput = 0;

View File

@ -86,7 +86,7 @@ Audio::~Audio ()
} }
bool bool
Audio::open (int rate, int bits, int channels, bool bCallback = false) Audio::open (int rate, int bits, int channels, bool bCallback)
{ {
WAVEFORMATEX format; WAVEFORMATEX format;
int nDevices = waveOutGetNumDevs (); int nDevices = waveOutGetNumDevs ();
@ -430,7 +430,7 @@ fhandler_dev_dsp::~fhandler_dev_dsp ()
} }
int int
fhandler_dev_dsp::open (path_conv *, int flags, mode_t mode = 0) fhandler_dev_dsp::open (path_conv *, int flags, mode_t mode)
{ {
// currently we only support writing // currently we only support writing
if ((flags & (O_WRONLY | O_RDONLY | O_RDWR)) != O_WRONLY) if ((flags & (O_WRONLY | O_RDONLY | O_RDWR)) != O_WRONLY)