- include <stdlib.h> and <string.h> where appropriate
- s/void volatile/void/ for a funtion return type
This commit is contained in:
parent
0f0f2b4e93
commit
512fbc0a03
|
@ -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 {
|
||||
|
|
|
@ -1816,7 +1816,7 @@ device_ioctl(device *me,
|
|||
/* I/O */
|
||||
|
||||
EXTERN_DEVICE\
|
||||
(void volatile)
|
||||
(void)
|
||||
device_error(device *me,
|
||||
const char *fmt,
|
||||
...)
|
||||
|
|
|
@ -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)));
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
|
||||
#include "bfd.h"
|
||||
|
||||
#ifdef HAVE_STDLIB_H
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* DEVICE
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue