#include <sys/time.h>
#include <sys/resource.h>
#include <stdio.h>
-#include "fd-limit.h"
-#include <common/error.h>
-#include <common/compat/errno.h>
+#include "fd-limit.hpp"
+#include <common/error.hpp>
+#include <common/compat/errno.hpp>
/* total count of fd. */
static long fd_count;
return 0;
}
-void lttng_fd_put(enum lttng_fd_type type, unsigned int nr)
+void lttng_fd_put(enum lttng_fd_type type __attribute__((unused)),
+ unsigned int nr)
{
uatomic_sub(&fd_count, (long) nr);
}