Skip to content

Commit

Permalink
Changed variable name _stat to stat_buf
Browse files Browse the repository at this point in the history
  • Loading branch information
cribalik committed Jun 1, 2015
1 parent 137625b commit d283178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fbserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,12 +492,12 @@ int write_cursor() {
}

void write_init() {
struct stat _stat;
struct stat stat_buf;
char raw[FRAMEMAXHEADERSIZE + sizeof(struct initinfo)];
struct initinfo* i = (struct initinfo*)(raw + FRAMEMAXHEADERSIZE);
i->type = 'I';
i->freon = 0;
if (stat("/sys/class/tty/tty0/active", &_stat) == -1) {
if (stat("/sys/class/tty/tty0/active", &stat_buf) == -1) {
trueorabort(errno == ENOENT, "Could not determine if using Freon or not");
i->freon = 1;
}
Expand Down

0 comments on commit d283178

Please sign in to comment.