diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 15:14:28 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 15:14:28 -0600 |
commit | 6b0412f5128e2fdf94852de586b3f90cbf476240 (patch) | |
tree | 91ab0edfb4492a25abf3c7e177e102201a77b23f /apps/graphics/screenshot/screenshot_main.c | |
parent | b845f19a3bb200e49a7a314787b3290e3155ce01 (diff) | |
download | px4-nuttx-6b0412f5128e2fdf94852de586b3f90cbf476240.tar.gz px4-nuttx-6b0412f5128e2fdf94852de586b3f90cbf476240.tar.bz2 px4-nuttx-6b0412f5128e2fdf94852de586b3f90cbf476240.zip |
Fixes for more cppcheck complaints. Mostly cosmetic
Diffstat (limited to 'apps/graphics/screenshot/screenshot_main.c')
-rw-r--r-- | apps/graphics/screenshot/screenshot_main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/graphics/screenshot/screenshot_main.c b/apps/graphics/screenshot/screenshot_main.c index eb4b6d74e..5bc74867c 100644 --- a/apps/graphics/screenshot/screenshot_main.c +++ b/apps/graphics/screenshot/screenshot_main.c @@ -119,8 +119,7 @@ int save_screenshot(FAR const char *filename) { struct tiff_info_s info; FAR uint8_t *strip; - int x; - int y; + int row; int ret; char tempf1[64]; char tempf2[64]; @@ -188,15 +187,15 @@ int save_screenshot(FAR const char *filename) strip = malloc(size.w * 3); - for (int y = 0; y < size.h; y++) + for (row = 0; row < size.h; row++) { - struct nxgl_rect_s rect = {{0, y}, {size.w - 1, y}}; + struct nxgl_rect_s rect = {{0, row}, {size.w - 1, row}}; nx_getrectangle(window, &rect, 0, strip, 0); ret = tiff_addstrip(&info, strip); if (ret < 0) { - printf("tiff_addstrip() #%d failed: %d\n", y, ret); + printf("tiff_addstrip() #%d failed: %d\n", row, ret); break; } } |