diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 19:11:56 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 19:11:56 -0600 |
commit | 797e41438176de465272bef182e035cd0fe5884a (patch) | |
tree | 3af4825ad5b2c3bd579305d025c35d6a3b96c9a1 /apps/examples/cc3000 | |
parent | 6db1f6f71c8867cbae3a2c5597b01f321064a370 (diff) | |
download | nuttx-797e41438176de465272bef182e035cd0fe5884a.tar.gz nuttx-797e41438176de465272bef182e035cd0fe5884a.tar.bz2 nuttx-797e41438176de465272bef182e035cd0fe5884a.zip |
More changes to reduce complaints from CppCheck. Some latent bugs fixes, but probably some new typos introduced
Diffstat (limited to 'apps/examples/cc3000')
-rw-r--r-- | apps/examples/cc3000/cc3000basic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/cc3000/cc3000basic.c b/apps/examples/cc3000/cc3000basic.c index 7ac4fa139..2e5fcd7cf 100644 --- a/apps/examples/cc3000/cc3000basic.c +++ b/apps/examples/cc3000/cc3000basic.c @@ -626,10 +626,10 @@ void ManualConnect(void) printf("Starting manual connect...\n"); printf(" Disabling auto-connect policy...\n"); - rval = wlan_ioctl_set_connection_policy(DISABLE, DISABLE, DISABLE); + (void)wlan_ioctl_set_connection_policy(DISABLE, DISABLE, DISABLE); printf(" Deleting all existing profiles...\n"); - rval = wlan_ioctl_del_profile(255); + (void)wlan_ioctl_del_profile(255); wait_on(15*MS_PER_SEC, &ulCC3000Connected, 0, " Waiting until disconnected"); @@ -649,7 +649,7 @@ void ManualConnect(void) (uint8_t *)AP_KEY, strlen(AP_KEY)); - if (rval==0) + if (rval == 0) { printf(" Manual connect success.\n"); } |