diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-04-22 10:38:08 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-04-22 10:38:08 -0600 |
commit | be67ba527fb3ff881e715e19d40ec1e40be4d523 (patch) | |
tree | 95d0270b388e47938d66a6802114a9c662eaa5bc /apps/examples/serialblaster | |
parent | 3186036d92f495768edf903135ad737728e6a5b7 (diff) | |
download | px4-nuttx-be67ba527fb3ff881e715e19d40ec1e40be4d523.tar.gz px4-nuttx-be67ba527fb3ff881e715e19d40ec1e40be4d523.tar.bz2 px4-nuttx-be67ba527fb3ff881e715e19d40ec1e40be4d523.zip |
Misc changes to get a clean compilation after incorporating all of Bob Doison's changes
Diffstat (limited to 'apps/examples/serialblaster')
-rw-r--r-- | apps/examples/serialblaster/serialblaster_main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/examples/serialblaster/serialblaster_main.c b/apps/examples/serialblaster/serialblaster_main.c index b4421e984..8889c2e30 100644 --- a/apps/examples/serialblaster/serialblaster_main.c +++ b/apps/examples/serialblaster/serialblaster_main.c @@ -68,13 +68,16 @@ static const char s[] = "abcdefghijklmnopqrstuvwxyz"; int serialblaster_main(int argc, char *argv[]) { - while(1) + int ret; + + while (1) { #ifdef BUFFERED_IO - int ret = fputs(s, stdout); + ret = fputs(s, stdout); #else - int ret = write(1, s, sizeof(s)-1); + ret = write(1, s, sizeof(s)-1); #endif + UNUSED(ret); } return 0; |