* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::init): Fix non-ISO

expression.
	* fhandler_floppy.cc (fhandler_dev_floppy::open): Remove unused
	variable.
	* fhandler_proc.cc (format_proc_meminfo): Fix compiler warning.
This commit is contained in:
Corinna Vinschen 2004-07-19 13:13:48 +00:00
parent f8e58afb11
commit bc2c51140c
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2004-07-19 Corinna Vinschen <corinna@vinschen.de>
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::init): Fix non-ISO
expression.
* fhandler_floppy.cc (fhandler_dev_floppy::open): Remove unused
variable.
* fhandler_proc.cc (format_proc_meminfo): Fix compiler warning.
2004-07-16 Christopher Faylor <cgf@timesys.com>
* pinfo.cc (pinfo::init): Guard against MapViewOfFileEx failure.

View File

@ -475,7 +475,7 @@ fhandler_dev_dsp::Audio_out::init (unsigned blockSize)
for (i = 0; i < MAX_BLOCKS; i++)
{
wavehdr_[i].lpData = &bigwavebuffer_[i * blockSize];
(int)wavehdr_[i].dwUser = blockSize;
wavehdr_[i].dwUser = (int) blockSize;
if (!Qapp2app_->send (&wavehdr_[i]))
{
debug_printf ("Internal Error i=%d", i);

View File

@ -69,7 +69,6 @@ fhandler_dev_floppy::open (int flags, mode_t)
_off64_t
fhandler_dev_floppy::lseek (_off64_t offset, int whence)
{
int ret;
char buf[512];
_off64_t drive_size = 0;
_off64_t lloffset = offset;

View File

@ -392,7 +392,7 @@ format_proc_meminfo (char *destbuf, size_t maxsize)
mem_free = memory_status.dwAvailPhys;
PSYSTEM_PAGEFILE_INFORMATION spi = NULL;
ULONG size = 512;
NTSTATUS ret;
NTSTATUS ret = STATUS_SUCCESS;
spi = (PSYSTEM_PAGEFILE_INFORMATION) malloc (size);
if (spi)
{