Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

strings consist of chararcters (=char), do not mix types and sign

  • Loading branch information...
commit 18ef8ace4b306602b8eeb722882e612fe700d0ab 1 parent 934cff1
@eku eku authored eku committed
View
2  network.c
@@ -110,7 +110,7 @@ network_init(void)
# endif
# if defined(IPV6_STATIC_SUPPORT) && defined(TFTPOMATIC_SUPPORT)
- const unsigned char *filename = CONF_TFTP_IMAGE;
+ const char *filename = CONF_TFTP_IMAGE;
set_CONF_TFTP_IP(&ip);
tftp_fire_tftpomatic(&ip, filename);
View
2  protocols/uip/ipv6.c
@@ -199,7 +199,7 @@ uip_ip6autoconfig(uint16_t addr0, uint16_t addr1,
uip_sethostaddr(&ipaddr);
# ifdef TFTPOMATIC_SUPPORT
- const unsigned char filename[] PROGMEM = CONF_TFTP_IMAGE;
+ const char filename[] PROGMEM = CONF_TFTP_IMAGE;
uip_ipaddr_t ip;
set_CONF_TFTP_IP(&ip);
View
4 services/tftp/tftp.h
@@ -36,7 +36,7 @@ struct tftp_hdr {
struct {
uint16_t block;
- char data[0];
+ unsigned char data[0];
} data;
struct {
@@ -58,7 +58,7 @@ void tftp_handle_packet(void);
#if defined(BOOTLOADER_SUPPORT) \
&& (defined(TFTPOMATIC_SUPPORT) || defined(BOOTP_SUPPORT))
inline static void
-tftp_fire_tftpomatic(uip_ipaddr_t *ip, const unsigned char *filename) {
+tftp_fire_tftpomatic(uip_ipaddr_t *ip, const char *filename) {
uip_udp_conn_t *tftp_req_conn =
uip_udp_new(ip, HTONS(TFTP_PORT), tftp_net_main);
View
2  services/tftp/tftp_net.c
@@ -43,7 +43,7 @@ tftp_net_init(void)
tftp_conn->appstate.tftp.fire_req = 0;
#ifndef IPV6_SUPPORT /* IPv6 is handled in ipv6.c (after ra) */
- const unsigned char *filename = CONF_TFTP_IMAGE;
+ const char *filename = CONF_TFTP_IMAGE;
set_CONF_TFTP_IP(&ip);
tftp_fire_tftpomatic(&ip, filename);
View
2  services/tftp/tftp_state.h
@@ -38,7 +38,7 @@ struct tftp_connection_state_t {
unsigned fire_req :1; /* this connection is for just
* starting a tftp request */
- unsigned char filename[TFTP_FILENAME_MAXLEN];
+ char filename[TFTP_FILENAME_MAXLEN];
#endif
uint16_t transfered; /* also retry countdown */
Please sign in to comment.
Something went wrong with that request. Please try again.