summaryrefslogtreecommitdiff
path: root/nuttx/netutils
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-28 13:14:13 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-28 13:14:13 +0000
commit5ab468aaa6e626a86bfb10785dee660e57d894c0 (patch)
treeab39ace437376d68d309af056f73c5354e5103ee /nuttx/netutils
parentf53b2945a7d9f1f7cfb4892e7aa3bca711a95e67 (diff)
downloadpx4-nuttx-5ab468aaa6e626a86bfb10785dee660e57d894c0.tar.gz
px4-nuttx-5ab468aaa6e626a86bfb10785dee660e57d894c0.tar.bz2
px4-nuttx-5ab468aaa6e626a86bfb10785dee660e57d894c0.zip
Fix examples/wget build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1649 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils')
-rw-r--r--nuttx/netutils/webclient/webclient.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/nuttx/netutils/webclient/webclient.c b/nuttx/netutils/webclient/webclient.c
index 25d68558b..823863a51 100644
--- a/nuttx/netutils/webclient/webclient.c
+++ b/nuttx/netutils/webclient/webclient.c
@@ -48,7 +48,7 @@
* Included Files
****************************************************************************/
-#ifndef CONFIG_NETUTILS_WEBCLIENT_HOST
+#ifndef CONFIG_WEBCLIENT_HOST
# include <nuttx/config.h>
# include <nuttx/compiler.h>
# include <debug.h>
@@ -107,14 +107,14 @@ struct wget_s
/* Buffer HTTP header data and parse line at a time */
- char line[CONFIG_NETUTILS_WEBCLIENT_MAXHTTPLINE];
+ char line[CONFIG_WEBCLIENT_MAXHTTPLINE];
int ndx;
#ifdef CONFIG_WEBCLIENT_GETMIMETYPE
- char mimetype[CONFIG_NETUTILS_WEBCLIENT_MAXMIMESIZE];
+ char mimetype[CONFIG_WEBCLIENT_MAXMIMESIZE];
#endif
- char hostname[CONFIG_NETUTILS_WEBCLIENT_MAXHOSTNAME];
- char filename[CONFIG_NETUTILS_WEBCLIENT_MAXFILENAME];
+ char hostname[CONFIG_WEBCLIENT_MAXHOSTNAME];
+ char filename[CONFIG_WEBCLIENT_MAXFILENAME];
};
/****************************************************************************
@@ -353,7 +353,7 @@ static inline int wget_parseheaders(struct wget_s *ws)
ws->hostname[i] = 0;
break;
}
- else if (i < CONFIG_NETUTILS_WEBCLIENT_MAXHOSTNAME-1)
+ else if (i < CONFIG_WEBCLIENT_MAXHOSTNAME-1)
{
ws->hostname[i] = *dest;
}
@@ -362,12 +362,12 @@ static inline int wget_parseheaders(struct wget_s *ws)
/* Copy the location */
- strncpy(ws->filename, dest, CONFIG_NETUTILS_WEBCLIENT_MAXFILENAME-1);
+ strncpy(ws->filename, dest, CONFIG_WEBCLIENT_MAXFILENAME-1);
/* Make sure that everything is NULL terminated */
- ws->hostname[CONFIG_NETUTILS_WEBCLIENT_MAXHOSTNAME-1] = '\0';
- ws->filename[CONFIG_NETUTILS_WEBCLIENT_MAXFILENAME-1] = '\0';
+ ws->hostname[CONFIG_WEBCLIENT_MAXHOSTNAME-1] = '\0';
+ ws->filename[CONFIG_WEBCLIENT_MAXFILENAME-1] = '\0';
nvdbg("New hostname='%s' filename='%s'\n", ws->hostname, ws->filename);
}
}
@@ -416,8 +416,8 @@ int wget(uint16 port,
memset(&ws, 0, sizeof(struct wget_s));
ws.buffer = buffer;
ws.buflen = buflen;
- strncpy(ws.hostname, hostname, CONFIG_NETUTILS_WEBCLIENT_MAXHOSTNAME);
- strncpy(ws.filename, filename, CONFIG_NETUTILS_WEBCLIENT_MAXFILENAME);
+ strncpy(ws.hostname, hostname, CONFIG_WEBCLIENT_MAXHOSTNAME);
+ strncpy(ws.filename, filename, CONFIG_WEBCLIENT_MAXFILENAME);
/* The following sequence may repeat indefinitely if we are redirected */