Host library for controlling a WiConnect enabled Wi-Fi module.
Dependents: wiconnect-ota_example wiconnect-web_setup_example wiconnect-test-console wiconnect-tcp_server_example ... more
Diff: internal/common.h
- Revision:
- 3:2dc2592bae5e
- Parent:
- 2:05e20e184e7e
- Child:
- 6:8a87a59d0d21
diff -r 05e20e184e7e -r 2dc2592bae5e internal/common.h --- a/internal/common.h Mon Aug 11 03:38:27 2014 -0700 +++ b/internal/common.h Mon Aug 11 03:44:25 2014 -0700 @@ -58,17 +58,15 @@ #ifdef WICONNECT_USE_DEFAULT_STRING_BUFFERS #define SET_STR_BUFFER(_buffer, size) \ - char *ptr, *buf; \ + char *ptr; \ static char defaultBuffer[size]; \ - ptr = buf = (_buffer == NULL) ? defaultBuffer : _buffer; \ - UNUSED(buf) + ptr = (_buffer == NULL) ? defaultBuffer : _buffer; #else #define SET_STR_BUFFER(_buffer, size) \ - char *ptr, *buf; \ + char *ptr; \ if(_buffer == NULL) \ { \ return "<null>"; \ } \ - ptr = buf = _buffer; \ - UNUSED(buf) + ptr = _buffer; #endif