mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
prof: fix ioctl call
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
printf("%s: draining /dev/prof\n", argv[0]);
|
||||
// empty it
|
||||
if (ioctl(infd, 12345678, NULL) > 0)
|
||||
if (ioctl(infd, 12345678, NULL) < 0)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
struct pollfd pollfd[2];
|
||||
|
||||
Reference in New Issue
Block a user