Clean-up: sessiond kernel: change spaces to tabs
[lttng-tools.git] / src / bin / lttng-sessiond / fd-limit.c
index 17a18afdc7b3f1d8f968f21b6555c2a6f661508d..626b4662c32c67a97252b248824d3d67666354bd 100644 (file)
@@ -1,21 +1,10 @@
 /*
- * Copyright (C) 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright (C) 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License, version 2 only,
- * as published by the Free Software Foundation.
+ * SPDX-License-Identifier: GPL-2.0-only
  *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
 #define _LGPL_SOURCE
 #include <urcu/uatomic.h>
 #include <sys/time.h>
@@ -23,6 +12,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include "fd-limit.h"
+#include <common/error.h>
 
 /* total count of fd. */
 static long fd_count;
@@ -65,7 +55,7 @@ void lttng_fd_init(void)
 
        ret = getrlimit(RLIMIT_NOFILE, &rlim);
        if (ret < 0) {
-               perror("getrlimit");
+               PERROR("getrlimit");
        }
        max_nr_fd = rlim.rlim_cur;
 }
This page took 0.025248 seconds and 5 git commands to generate.