diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-04 17:36:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-04 17:36:07 +0000 |
commit | d0c91546343d545c11c10f7d29d1c06175c1109a (patch) | |
tree | 64bb2a8bfc5fdae5e8a88464b3b89054f602259e /apps/examples/nettest/nettest_client.c | |
parent | f096e07fceb776545fa7b06501dc734ad0e81783 (diff) | |
download | nuttx-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/nettest/nettest_client.c')
-rw-r--r-- | apps/examples/nettest/nettest_client.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/examples/nettest/nettest_client.c b/apps/examples/nettest/nettest_client.c index d498feb31..8ab5b14d6 100644 --- a/apps/examples/nettest/nettest_client.c +++ b/apps/examples/nettest/nettest_client.c @@ -56,12 +56,12 @@ void send_client(void) { struct sockaddr_in myaddr; char *outbuf; -#ifndef CONFIG_EXAMPLE_NETTEST_PERFORMANCE +#ifndef CONFIG_EXAMPLES_NETTEST_PERFORMANCE char *inbuf; #endif int sockfd; int nbytessent; -#ifndef CONFIG_EXAMPLE_NETTEST_PERFORMANCE +#ifndef CONFIG_EXAMPLES_NETTEST_PERFORMANCE int nbytesrecvd; int totalbytesrecvd; #endif @@ -71,7 +71,7 @@ void send_client(void) /* Allocate buffers */ outbuf = (char*)malloc(SENDSIZE); -#ifndef CONFIG_EXAMPLE_NETTEST_PERFORMANCE +#ifndef CONFIG_EXAMPLES_NETTEST_PERFORMANCE inbuf = (char*)malloc(SENDSIZE); if (!outbuf || !inbuf) #else @@ -98,7 +98,7 @@ void send_client(void) #if 0 myaddr.sin_addr.s_addr = HTONL(INADDR_LOOPBACK); #else - myaddr.sin_addr.s_addr = HTONL(CONFIG_EXAMPLE_NETTEST_CLIENTIP); + myaddr.sin_addr.s_addr = HTONL(CONFIG_EXAMPLES_NETTEST_CLIENTIP); #endif message("client: Connecting...\n"); @@ -121,7 +121,7 @@ void send_client(void) } } -#ifdef CONFIG_EXAMPLE_NETTEST_PERFORMANCE +#ifdef CONFIG_EXAMPLES_NETTEST_PERFORMANCE /* Then send messages forever */ for (;;) @@ -192,7 +192,7 @@ void send_client(void) close(sockfd); free(outbuf); -#ifndef CONFIG_EXAMPLE_NETTEST_PERFORMANCE +#ifndef CONFIG_EXAMPLES_NETTEST_PERFORMANCE free(inbuf); #endif return; @@ -203,7 +203,7 @@ errout_with_socket: errout_with_buffers: free(outbuf); -#ifndef CONFIG_EXAMPLE_NETTEST_PERFORMANCE +#ifndef CONFIG_EXAMPLES_NETTEST_PERFORMANCE free(inbuf); #endif exit(1); |