s/exit(1)/exit(EXIT_FAILURE)/

This commit is contained in:
Michael Kerrisk 2007-06-01 05:23:59 +00:00
parent 1bdcbc0140
commit c961c6369a
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ main(void)
fd = open(device, O_RDWR);
if (fd < 0) {
perror(device);
exit(1);
exit(EXIT_FAILURE);
}
(void) read(fd, &scrn, 4);
(void) lseek(fd, 4 + 2*(scrn.y*scrn.cols + scrn.x), 0);