summaryrefslogtreecommitdiff
path: root/apps/examples/ftpd
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-04 17:36:07 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-04 17:36:07 +0000
commitd0c91546343d545c11c10f7d29d1c06175c1109a (patch)
tree64bb2a8bfc5fdae5e8a88464b3b89054f602259e /apps/examples/ftpd
parentf096e07fceb776545fa7b06501dc734ad0e81783 (diff)
downloadnuttx-d0c91546343d545c11c10f7d29d1c06175c1109a.tar.gz
nuttx-d0c91546343d545c11c10f7d29d1c06175c1109a.tar.bz2
nuttx-d0c91546343d545c11c10f7d29d1c06175c1109a.zip
Change all occurrences of CONFIG_EXAMPLE_ to CONFIG_EXAMPLES_ for consistency; fleshed out a few more Kconfig files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5211 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/ftpd')
-rw-r--r--apps/examples/ftpd/ftpd.h26
-rw-r--r--apps/examples/ftpd/ftpd_main.c10
2 files changed, 18 insertions, 18 deletions
diff --git a/apps/examples/ftpd/ftpd.h b/apps/examples/ftpd/ftpd.h
index 6a439e818..ad20bdfb1 100644
--- a/apps/examples/ftpd/ftpd.h
+++ b/apps/examples/ftpd/ftpd.h
@@ -61,12 +61,12 @@
* If CONFIG_EXAMPLES_FTPD_NONETINIT is not defined, then the following may
* be specified to customized the network configuration:
*
- * CONFIG_EXAMPLE_FTPD_NOMAC - If the hardware has no MAC address of its
+ * CONFIG_EXAMPLES_FTPD_NOMAC - If the hardware has no MAC address of its
* own, define this =y to provide a bogus address for testing.
- * CONFIG_EXAMPLE_FTPD_IPADDR - The target IP address. Default 10.0.0.2
- * CONFIG_EXAMPLE_FTPD_DRIPADDR - The default router address. Default
+ * CONFIG_EXAMPLES_FTPD_IPADDR - The target IP address. Default 10.0.0.2
+ * CONFIG_EXAMPLES_FTPD_DRIPADDR - The default router address. Default
* 10.0.0.1
- * CONFIG_EXAMPLE_FTPD_NETMASK - The network mask. Default: 255.255.255.0
+ * CONFIG_EXAMPLES_FTPD_NETMASK - The network mask. Default: 255.255.255.0
*/
#ifndef CONFIG_EXAMPLES_FTPD_PRIO
@@ -92,18 +92,18 @@
#endif
#ifdef CONFIG_EXAMPLES_FTPD_NONETINIT
-# undef CONFIG_EXAMPLE_FTPD_IPADDR
-# undef CONFIG_EXAMPLE_FTPD_DRIPADDR
-# undef CONFIG_EXAMPLE_FTPD_NETMASK
+# undef CONFIG_EXAMPLES_FTPD_IPADDR
+# undef CONFIG_EXAMPLES_FTPD_DRIPADDR
+# undef CONFIG_EXAMPLES_FTPD_NETMASK
#else
-# ifndef CONFIG_EXAMPLE_FTPD_IPADDR
-# define CONFIG_EXAMPLE_FTPD_IPADDR 0x0a000002
+# ifndef CONFIG_EXAMPLES_FTPD_IPADDR
+# define CONFIG_EXAMPLES_FTPD_IPADDR 0x0a000002
# endif
-# ifndef CONFIG_EXAMPLE_FTPD_DRIPADDR
-# define CONFIG_EXAMPLE_FTPD_DRIPADDR 0x0a000001
+# ifndef CONFIG_EXAMPLES_FTPD_DRIPADDR
+# define CONFIG_EXAMPLES_FTPD_DRIPADDR 0x0a000001
# endif
-# ifndef CONFIG_EXAMPLE_FTPD_NETMASK
-# define CONFIG_EXAMPLE_FTPD_NETMASK 0xffffff00
+# ifndef CONFIG_EXAMPLES_FTPD_NETMASK
+# define CONFIG_EXAMPLES_FTPD_NETMASK 0xffffff00
# endif
#endif
diff --git a/apps/examples/ftpd/ftpd_main.c b/apps/examples/ftpd/ftpd_main.c
index 6d19f952c..1907da18c 100644
--- a/apps/examples/ftpd/ftpd_main.c
+++ b/apps/examples/ftpd/ftpd_main.c
@@ -83,13 +83,13 @@ static void fptd_netinit(void)
{
#ifndef CONFIG_EXAMPLES_FTPD_NONETINIT
struct in_addr addr;
-#ifdef CONFIG_EXAMPLE_FTPD_NOMAC
+#ifdef CONFIG_EXAMPLES_FTPD_NOMAC
uint8_t mac[IFHWADDRLEN];
#endif
/* Many embedded network interfaces must have a software assigned MAC */
-#ifdef CONFIG_EXAMPLE_FTPD_NOMAC
+#ifdef CONFIG_EXAMPLES_FTPD_NOMAC
mac[0] = 0x00;
mac[1] = 0xe0;
mac[2] = 0xde;
@@ -101,17 +101,17 @@ static void fptd_netinit(void)
/* Set up our host address */
- addr.s_addr = HTONL(CONFIG_EXAMPLE_FTPD_IPADDR);
+ addr.s_addr = HTONL(CONFIG_EXAMPLES_FTPD_IPADDR);
uip_sethostaddr("eth0", &addr);
/* Set up the default router address */
- addr.s_addr = HTONL(CONFIG_EXAMPLE_FTPD_DRIPADDR);
+ addr.s_addr = HTONL(CONFIG_EXAMPLES_FTPD_DRIPADDR);
uip_setdraddr("eth0", &addr);
/* Setup the subnet mask */
- addr.s_addr = HTONL(CONFIG_EXAMPLE_FTPD_NETMASK);
+ addr.s_addr = HTONL(CONFIG_EXAMPLES_FTPD_NETMASK);
uip_setnetmask("eth0", &addr);
#endif /* CONFIG_EXAMPLES_FTPD_NONETINIT */
}