Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

minor compile fixes after code cleanup

  • Loading branch information...
commit 1547b55320db31eba7af4020f0ca0298ec42cef1 1 parent e7a3515
@prpplague authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  perf.c
  2. +4 −4 rect.c
View
2  perf.c
@@ -268,7 +268,7 @@ static void sequential_line_write(unsigned loops,
linebuf = malloc(var.xres_virtual * bytespp);
for (y = 0; y < var.xres_virtual * bytespp; ++y)
- ((unsigned char)*linebuf)[y] = y;
+ ((unsigned char*)linebuf)[y] = y;
start_timing();
View
8 rect.c
@@ -36,14 +36,14 @@
__LINE__, strerror(errno));
#define FBCTL(cmd, arg) \
- (if (ioctl(fd, cmd, arg) == -1) { \
+ if (ioctl(fd, cmd, arg) == -1) { \
ERROR("ioctl failed"); \
- exit(1); })
+ exit(1); }
#define FBCTL0(cmd) \
- (if (ioctl(fd, cmd) == -1) { \
+ if (ioctl(fd, cmd) == -1) { \
ERROR("ioctl failed"); \
- exit(1); })
+ exit(1); }
static struct fb_var_screeninfo var;
static struct fb_fix_screeninfo fix;
Please sign in to comment.
Something went wrong with that request. Please try again.