tftp.h, tftp.c (tftp_get): make "buffer" void and use unsigned char internally

This commit is contained in:
Werner Almesberger 2013-04-16 13:55:24 -03:00 committed by Sebastien Bourdeauducq
parent effa71a811
commit cdb5519272
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ static int format_ack(unsigned char *buf, unsigned short block)
static unsigned char *packet_data;
static int total_length;
static int transfer_finished;
static char *dst_buffer;
static unsigned char *dst_buffer;
static void rx_callback(unsigned int src_ip, unsigned short src_port,
unsigned short dst_port, void *_data, unsigned int length)
@ -78,7 +78,7 @@ static void rx_callback(unsigned int src_ip, unsigned short src_port,
}
}
int tftp_get(unsigned int ip, const char *filename, char *buffer)
int tftp_get(unsigned int ip, const char *filename, void *buffer)
{
int len;
int tries;

View File

@ -1,7 +1,7 @@
#ifndef __TFTP_H
#define __TFTP_H
int tftp_get(unsigned int ip, const char *filename, char *buffer);
int tftp_get(unsigned int ip, const char *filename, void *buffer);
#endif /* __TFTP_H */