summaryrefslogtreecommitdiff
path: root/tests/gem_fd_exhaustion.c
diff options
context:
space:
mode:
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);