changeset 2279:042c71d8381f

* src/net/tftp_client.c (tftp_error_ack): Fix compiler warnings.
author asl
date Tue, 29 Aug 2006 20:24:57 +0000
parents aa9bc5b59c2b
children 99a5c71d5ad2
files packages/redboot/current/ChangeLog packages/redboot/current/src/net/tftp_client.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -1,3 +1,7 @@
+2006-08-28  Sergei Gavrikov  <w3sg@SoftHome.net>
+
+	* src/net/tftp_client.c (tftp_error_ack): Fix compiler warnings.
+
 2006-07-21  David Ho <davidkwho@gmail.com>
 
 	* src/flash.c (fis_start_update_directory): Fix build error when
--- a/packages/redboot/current/src/net/tftp_client.c
+++ b/packages/redboot/current/src/net/tftp_client.c
@@ -164,13 +164,13 @@ tftp_error_ack(int *err, short code, cha
     struct tftphdr *hdr = (struct tftphdr *)tftp_stream.data;
 
     if (strlen(msg) > (SEGSIZE-1)) {
-      *(msg + SEGSIZE) = NULL;
+      *(msg + SEGSIZE) = 0;
     }
 
     if (tftp_stream.packets_received > 0) {
         hdr->th_opcode = htons(ERROR);
         hdr->th_code = code;
-        strcpy(&hdr->th_data, msg);
+        strcpy((char *)&hdr->th_data, msg);
         if (__udp_sendto(tftp_stream.data, (5 + strlen(msg)), 
                          &tftp_stream.from_addr, &tftp_stream.local_addr) < 0) {
             // Problem sending ACK