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 values in fconfig


-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: redboot/current/ChangeLog
===================================================================
RCS file: /home/gthomas/my_cvs/develop/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.11
diff -u -5 -p -r1.11 ChangeLog
--- redboot/current/ChangeLog	19 Aug 2003 18:26:58 -0000	1.11
+++ redboot/current/ChangeLog	9 Sep 2003 14:39:26 -0000
@@ -1,5 +1,10 @@
+2003-09-09  Gary Thomas  <gary@mlbassoc.com>
+
+	* src/flash.c (flash_config_insert_value): Default values were
+	wrong for IP & ESA types.
+
 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: /home/gthomas/my_cvs/develop/ecos/packages/redboot/current/src/flash.c,v
retrieving revision 1.7
diff -u -5 -p -r1.7 flash.c
--- redboot/current/src/flash.c	19 Aug 2003 18:26:58 -0000	1.7
+++ redboot/current/src/flash.c	9 Sep 2003 14:35:38 -0000
@@ -1986,14 +1986,14 @@ 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));
+        memcpy(dp, (void *)opt->dflt, sizeof(enet_addr_t));
         break;
 #if defined(CYGHWR_NET_DRIVERS) && (CYGHWR_NET_DRIVERS > 1)
     case CONFIG_NETPORT:
 	// validate dflt and if not acceptable use first port
         {

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