Rename C++ header files to .hpp
[lttng-tools.git] / src / bin / lttng-sessiond / fd-limit.cpp
index 833b64714b2aa1e9b1920c953962bf787076ee79..ac5c83f4b19775beed137606c483d20dadb3ecd9 100644 (file)
@@ -10,9 +10,9 @@
 #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;
@@ -43,7 +43,8 @@ int lttng_fd_get(enum lttng_fd_type type, unsigned int nr)
        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);
 }
This page took 0.023189 seconds and 4 git commands to generate.