From b3ece1fee89d251cdbe8d2cd51fe01ef7ce2a6c6 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Mon, 12 Mar 2018 11:17:25 +0100 Subject: tests/gem_fd_exhaustion: Fix build failure This breaks igt build really badly. Signed-off-by: Maarten Lankhorst Cc: Karol Krol Reviewed-by: Petri Latvala --- tests/gem_fd_exhaustion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/gem_fd_exhaustion.c') diff --git a/tests/gem_fd_exhaustion.c b/tests/gem_fd_exhaustion.c index d04cdd09..559590b1 100644 --- a/tests/gem_fd_exhaustion.c +++ b/tests/gem_fd_exhaustion.c @@ -80,7 +80,7 @@ static bool allow_unlimited_files(void) return setrlimit(RLIMIT_NOFILE, &rlim) == 0; } -static void restore_original_sysctl(void) +static void restore_original_sysctl(int sig) { if (original_nr_open > 0) write_sysctl("/proc/sys/fs/nr_open", original_nr_open); -- cgit v1.2.3