This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RedBoot - fix default IP value


Oops, my previous change was a bit over exuberant!
Only the ESA type was incorrect, not the IP type as well.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: redboot/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.124
diff -u -5 -p -r1.124 ChangeLog
--- redboot/current/ChangeLog	9 Sep 2003 14:40:20 -0000	1.124
+++ redboot/current/ChangeLog	9 Sep 2003 21:28:38 -0000
@@ -1,9 +1,9 @@
 2003-09-09  Gary Thomas  <gary@mlbassoc.com>
 
-	* src/flash.c (flash_config_insert_value): Default values were
-	wrong for IP & ESA types.
+	* src/flash.c (flash_config_insert_value): Default value was
+	wrong for ESA type.
 
 2003-08-19  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/net/udp.c (__udp_recvfrom): Rework loop so delay only happens
 	if no packet is immediately available - improves network throughput.
Index: redboot/current/src/flash.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/redboot/current/src/flash.c,v
retrieving revision 1.49
diff -u -5 -p -r1.49 flash.c
--- redboot/current/src/flash.c	9 Sep 2003 14:40:21 -0000	1.49
+++ redboot/current/src/flash.c	9 Sep 2003 21:27:15 -0000
@@ -1986,11 +1986,11 @@ flash_config_insert_value(unsigned char 
     case CONFIG_INT:
         memcpy(dp, (void *)&opt->dflt, sizeof(unsigned long));
         break;
 #ifdef CYGPKG_REDBOOT_NETWORKING
     case CONFIG_IP:
-        memcpy(dp, (void *)opt->dflt, sizeof(in_addr_t));
+        memcpy(dp, (void *)&opt->dflt, sizeof(in_addr_t));
         break;
     case CONFIG_ESA:
         memcpy(dp, (void *)opt->dflt, sizeof(enet_addr_t));
         break;
 #if defined(CYGHWR_NET_DRIVERS) && (CYGHWR_NET_DRIVERS > 1)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]