fix misleading-indentation warnings

This commit is contained in:
rofl0r 2017-11-22 14:54:35 +00:00
parent 32d1229359
commit afa153e187
2 changed files with 8 additions and 4 deletions

9
lcd.c
View File

@ -746,9 +746,12 @@ static void updatepalette(int i)
y = (((r * 263) + (g * 516) + (b * 100)) >> 10) + 16; y = (((r * 263) + (g * 516) + (b * 100)) >> 10) + 16;
u = (((r * 450) - (g * 377) - (b * 73)) >> 10) + 128; u = (((r * 450) - (g * 377) - (b * 73)) >> 10) + 128;
v = (((r * -152) - (g * 298) + (b * 450)) >> 10) + 128; v = (((r * -152) - (g * 298) + (b * 450)) >> 10) + 128;
if (y < 0) y = 0; if (y > 255) y = 255; if (y < 0) y = 0;
if (u < 0) u = 0; if (u > 255) u = 255; if (y > 255) y = 255;
if (v < 0) v = 0; if (v > 255) v = 255; if (u < 0) u = 0;
if (u > 255) u = 255;
if (v < 0) v = 0;
if (v > 255) v = 255;
PAL4[i] = (y<<fb.cc[0].l) | (y<<fb.cc[3].l) PAL4[i] = (y<<fb.cc[0].l) | (y<<fb.cc[3].l)
| (u<<fb.cc[1].l) | (v<<fb.cc[2].l); | (u<<fb.cc[1].l) | (v<<fb.cc[2].l);
return; return;

3
path.c
View File

@ -18,7 +18,8 @@ char *path_search(char *name, char *mode, char *path)
char *p, *n; char *p, *n;
int l; int l;
if (buf) free(buf); buf = 0; if (buf) free(buf);
buf = 0;
if (!path || !*path || *name == '/') if (!path || !*path || *name == '/')
return (buf = strdup(name)); return (buf = strdup(name));