test-mouse: Fix mouse fd cleanup
I was creating a local variable shadowing the global one. This prevented cleanup to close it. (this is not really necessary as the program dies anyway)
This commit is contained in:
@@ -103,7 +103,7 @@ int main(int argc, char** argv)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mouse_fd = open(mouse_path, O_RDONLY);
|
mouse_fd = open(mouse_path, O_RDONLY);
|
||||||
if (mouse_fd == -1)
|
if (mouse_fd == -1)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "open: ");
|
fprintf(stderr, "open: ");
|
||||||
|
|||||||
Reference in New Issue
Block a user