forked from Imagelibrary/rtems
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:
@@ -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>
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,5 +49,6 @@ int ioctl(
|
||||
*/
|
||||
rc = (*iop->pathinfo.handlers->ioctl_h)( iop, command, buffer );
|
||||
|
||||
va_end( ap );
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user