tftp.h, tftp.c (tftp_get): make "buffer" void and use unsigned char internally
This commit is contained in:
parent
effa71a811
commit
cdb5519272
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue