Commit f4d82deb authored by oharboe's avatar oharboe
Browse files

Uwe Hermann <uwe@hermann-uwe.de> One of them is fixing a few compiler warnings...

Uwe Hermann <uwe@hermann-uwe.de> One of them is fixing a few compiler warnings (see attached patch) and
likely also one (non-cosmetic) bug (the 'id_buff' change, which seems to
be a buffer overflow).

git-svn-id: svn://svn.berlios.de/openocd/trunk@1293 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 18587061
......@@ -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;
......
......@@ -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>
......
......@@ -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;
......
......@@ -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)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment