This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Redboot warning fixed
- From: Andrew Lunn <andrew at lunn dot ch>
- To: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Sun, 19 Sep 2004 15:01:25 +0200
- Subject: Redboot warning fixed
Hi little patch fixes a compiler warning when compiling redboot
without networking support.
Andrew
Index: redboot/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.206
diff -u -r1.206 ChangeLog
--- redboot/current/ChangeLog 5 Sep 2004 20:56:12 -0000 1.206
+++ redboot/current/ChangeLog 19 Sep 2004 13:00:36 -0000
@@ -1,3 +1,8 @@
+2004-09-19 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * src/load.c (do_load): Removed compiler warning when building
+ reboot without networking.
+
2004-09-05 Mark Salter <msalter@redhat.com>
* doc/redboot_installing.sgml: Add mb93091 and mb93093.
Index: redboot/current/src/load.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/load.c,v
retrieving revision 1.43
diff -u -r1.43 load.c
--- redboot/current/src/load.c 21 Aug 2004 12:43:32 -0000 1.43
+++ redboot/current/src/load.c 19 Sep 2004 13:00:37 -0000
@@ -600,6 +600,8 @@
#ifdef CYGPKG_REDBOOT_NETWORKING
struct sockaddr_in host;
bool hostname_set, port_set;
+ unsigned int port; // int because it's an OPTION_ARG_TYPE_NUM,
+ // but will be cast to short
char *hostname;
#endif
bool decompress = false;
@@ -615,7 +617,6 @@
connection_info_t info;
getc_io_funcs_t *io = NULL;
struct load_io_entry *io_tab;
- unsigned int port; //int because it's an OPTION_ARG_TYPE_NUM, but will be cast to short
#ifdef CYGSEM_REDBOOT_VALIDATE_USER_RAM_LOADS
bool spillover_ok = false;
#endif