diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 14:51:10 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 14:51:10 -0600 |
commit | b845f19a3bb200e49a7a314787b3290e3155ce01 (patch) | |
tree | 51d3d2e4887b9a950b1e7d85c61359544c7f547c /apps/examples/poll | |
parent | f7de6bbcbae818aff936bd71ee5268946ea9ad30 (diff) | |
download | nuttx-b845f19a3bb200e49a7a314787b3290e3155ce01.tar.gz nuttx-b845f19a3bb200e49a7a314787b3290e3155ce01.tar.bz2 nuttx-b845f19a3bb200e49a7a314787b3290e3155ce01.zip |
Fixes for more cppcheck complaints. Mostly cosmetic
Diffstat (limited to 'apps/examples/poll')
-rw-r--r-- | apps/examples/poll/poll_listener.c | 3 | ||||
-rw-r--r-- | apps/examples/poll/poll_main.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/examples/poll/poll_listener.c b/apps/examples/poll/poll_listener.c index 23272d0a5..ca1b1542d 100644 --- a/apps/examples/poll/poll_listener.c +++ b/apps/examples/poll/poll_listener.c @@ -242,7 +242,8 @@ void *poll_listener(pthread_addr_t pvarg) } buffer[nbytes] = '\0'; - printf("poll_listener: Read[%d] '%s' (%d bytes)\n", i, buffer, nbytes); + printf("poll_listener: Read[%d] '%s' (%ld bytes)\n", + i, buffer, (long)nbytes); } /* Suppress error report if no read data on the next time through */ diff --git a/apps/examples/poll/poll_main.c b/apps/examples/poll/poll_main.c index 11479e1a3..0f61f2f25 100644 --- a/apps/examples/poll/poll_main.c +++ b/apps/examples/poll/poll_main.c @@ -199,7 +199,8 @@ int poll_main(int argc, char *argv[]) goto errout; } - printf("\npoll_main: Sent '%s' (%d bytes)\n", buffer, nbytes); + printf("\npoll_main: Sent '%s' (%ld bytes)\n", + buffer, (long)nbytes); fflush(stdout); /* Wait awhile. This delay should be long enough that the |