summaryrefslogtreecommitdiff
path: root/tests/gem_fd_exhaustion.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-03-12 11:17:25 +0100
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-03-12 12:18:06 +0100
commitb3ece1fee89d251cdbe8d2cd51fe01ef7ce2a6c6 (patch)
treeb222dfd63fd6a0938660157c1717a2467609f843 /tests/gem_fd_exhaustion.c
parent5d71d7782a830843c7231fbd72ab3edae19b48d7 (diff)
tests/gem_fd_exhaustion: Fix build failure
This breaks igt build really badly. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Karol Krol <karol.krol@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/gem_fd_exhaustion.c')
-rw-r--r--tests/gem_fd_exhaustion.c2
1 files changed, 1 insertions, 1 deletions
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);