2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>

* libblock/src/flashdisk.c, libblock/src/nvdisk.c,
	libcsupport/src/ioctl.c, libfs/src/dosfs/fat_file.c: Add va_end().
This commit is contained in:
Joel Sherrill
2010-08-23 23:17:42 +00:00
parent bab3862b22
commit bf4766fe69
5 changed files with 16 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* libblock/src/flashdisk.c, libblock/src/nvdisk.c,
libcsupport/src/ioctl.c, libfs/src/dosfs/fat_file.c: Add va_end().
2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>

View File

@@ -344,6 +344,7 @@ rtems_fdisk_printf (const rtems_flashdisk* fd, const char *format, ...)
ret = vfprintf (stdout, format, args);
fprintf (stdout, "\n");
fflush (stdout);
va_end (args);
}
return ret;
}
@@ -368,6 +369,7 @@ rtems_fdisk_info (const rtems_flashdisk* fd, const char *format, ...)
ret = vfprintf (stdout, format, args);
fprintf (stdout, "\n");
fflush (stdout);
va_end (args);
}
return ret;
}
@@ -392,6 +394,7 @@ rtems_fdisk_warning (const rtems_flashdisk* fd, const char *format, ...)
ret = vfprintf (stdout, format, args);
fprintf (stdout, "\n");
fflush (stdout);
va_end (args);
}
return ret;
}
@@ -414,6 +417,7 @@ rtems_fdisk_error (const char *format, ...)
ret = vfprintf (stderr, format, args);
fprintf (stderr, "\n");
fflush (stderr);
va_end (args);
return ret;
}
@@ -432,6 +436,7 @@ rtems_fdisk_abort (const char *format, ...)
vfprintf (stderr, format, args);
fprintf (stderr, "\n");
fflush (stderr);
va_end (args);
exit (1);
}

View File

@@ -175,6 +175,7 @@ rtems_nvdisk_printf (const rtems_nvdisk* nvd, const char *format, ...)
ret = vfprintf (stdout, format, args);
fprintf (stdout, "\n");
fflush (stdout);
va_end (args);
}
return ret;
}
@@ -199,6 +200,7 @@ rtems_nvdisk_info (const rtems_nvdisk* nvd, const char *format, ...)
ret = vfprintf (stdout, format, args);
fprintf (stdout, "\n");
fflush (stdout);
va_end (args);
}
return ret;
}
@@ -223,6 +225,7 @@ rtems_nvdisk_warning (const rtems_nvdisk* nvd, const char *format, ...)
ret = vfprintf (stdout, format, args);
fprintf (stdout, "\n");
fflush (stdout);
va_end (args);
}
return ret;
}
@@ -245,6 +248,7 @@ rtems_nvdisk_error (const char *format, ...)
ret = vfprintf (stderr, format, args);
fprintf (stderr, "\n");
fflush (stderr);
va_end (args);
return ret;
}

View File

@@ -49,5 +49,6 @@ int ioctl(
*/
rc = (*iop->pathinfo.handlers->ioctl_h)( iop, command, buffer );
va_end( ap );
return rc;
}

View File

@@ -692,7 +692,7 @@ fat_file_ioctl(
/* sanity check */
if ( pos >= fat_fd->fat_file_size ) {
va_end();
va_end(ap);
rtems_set_errno_and_return_minus_one( EIO );
}