- include <stdlib.h> and <string.h> where appropriate

- s/void volatile/void/ for a funtion return type
This commit is contained in:
mrg 2006-05-23 20:11:10 +00:00
parent 0f0f2b4e93
commit 512fbc0a03
5 changed files with 14 additions and 2 deletions

View File

@ -29,6 +29,10 @@
#include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
int ppc_trace[nr_trace_options];
typedef struct _trace_option_descriptor {

View File

@ -1816,7 +1816,7 @@ device_ioctl(device *me,
/* I/O */
EXTERN_DEVICE\
(void volatile)
(void)
device_error(device *me,
const char *fmt,
...)

View File

@ -727,7 +727,7 @@ EXTERN_DEVICE\
*/
EXTERN_DEVICE\
(void volatile) device_error
(void) device_error
(device *me,
const char *fmt,
...) __attribute__ ((format (printf, 2, 3)));

View File

@ -26,6 +26,10 @@
#include "bfd.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
/* DEVICE

View File

@ -26,6 +26,10 @@
#include "bfd.h"
#include "psim.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
/* DMA a file into memory */
static int