summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/flash/nand.c2
-rw-r--r--src/helper/jim.c1
-rw-r--r--src/jtag/usbprog.c4
-rw-r--r--src/target/target.c2
4 files changed, 5 insertions, 4 deletions
diff --git a/src/flash/nand.c b/src/flash/nand.c
index 971956e8..7f914075 100644
--- a/src/flash/nand.c
+++ b/src/flash/nand.c
@@ -375,7 +375,7 @@ int nand_read_status(struct nand_device_s *device, u8 *status)
int nand_probe(struct nand_device_s *device)
{
u8 manufacturer_id, device_id;
- u8 id_buff[5];
+ u8 id_buff[6];
int retval;
int i;
diff --git a/src/helper/jim.c b/src/helper/jim.c
index f4336ae2..a43bcbd6 100644
--- a/src/helper/jim.c
+++ b/src/helper/jim.c
@@ -49,6 +49,7 @@
#define JIM_DYNLIB /* Dynamic library support for UNIX and WIN32 */
#endif /* JIM_ANSIC */
+#define _GNU_SOURCE /* for vasprintf() */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/jtag/usbprog.c b/src/jtag/usbprog.c
index 419ad4e0..be050118 100644
--- a/src/jtag/usbprog.c
+++ b/src/jtag/usbprog.c
@@ -93,7 +93,7 @@ struct usbprog_jtag
struct usbprog_jtag * usbprog_jtag_handle;
-struct usbprog_jtag* usbprog_jtag_open();
+struct usbprog_jtag* usbprog_jtag_open(void);
void usbprog_jtag_close(struct usbprog_jtag *usbprog_jtag);
void usbprog_jtag_init(struct usbprog_jtag *usbprog_jtag);
unsigned char usbprog_jtag_message(struct usbprog_jtag *usbprog_jtag, char *msg, int msglen);
@@ -405,7 +405,7 @@ void usbprog_reset(int trst, int srst)
struct usb_bus *busses;
-struct usbprog_jtag* usbprog_jtag_open()
+struct usbprog_jtag* usbprog_jtag_open(void)
{
struct usb_bus *bus;
struct usb_device *dev;
diff --git a/src/target/target.c b/src/target/target.c
index f86d8f39..bafd98e9 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -4014,7 +4014,7 @@ struct FastLoad
static int fastload_num;
static struct FastLoad *fastload;
-static void free_fastload()
+static void free_fastload(void)
{
if (fastload!=NULL)
{