summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-23 00:11:46 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-23 00:11:46 -0800
commit40118948a19f53c15d67a0493832ff2feac52cb6 (patch)
tree3688ca1bc8050b9ce62373a55234b8052dba685e
parent898c6df7d1de9fa19bedf3c1c1fd31df5ccd1116 (diff)
Rename row pointer to avoid shadowing row integer variable
Fixes gcc warning: showfont.c: In function ‘show_glyphs’: showfont.c:261:18: warning: declaration of ‘row’ shadows a previous local [-Wshadow] showfont.c:178:10: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--showfont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/showfont.c b/showfont.c
index 4ba01a6..05895ac 100644
--- a/showfont.c
+++ b/showfont.c
@@ -258,10 +258,10 @@ show_glyphs(
}
offset = offsets[ch].position;
for (r = 0; r < bottom; r++) {
- unsigned char *row = glyphs + offset;
+ unsigned char *rowp = glyphs + offset;
for (b = 0; b < charwidth; b++) {
- putchar((row[b >> 3] &
+ putchar((rowp[b >> 3] &
(1 << (7 - (b & 7)))) ? '#' : '-');
}
putchar('\n');