Fix: common: poll: compat_poll_wait never finishes
[lttng-tools.git] / src / common / fs-handle.c
index 58763a0b2d60cc2fff65f1e8c7e29422e84a9b27..46d9d7de5d322f2f82940c72c8eef2619b40e0ad 100644 (file)
@@ -1,18 +1,8 @@
 /*
- * Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
- * This library is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; version 2.1 of the License.
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
- * This library 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 Lesser General Public License
- * for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
 #include <common/fs-handle-internal.h>
@@ -80,7 +70,7 @@ end:
 LTTNG_HIDDEN
 int fs_handle_truncate(struct fs_handle *handle, off_t offset)
 {
-        int ret;
+       int ret;
        const int fd = fs_handle_get_fd(handle);
 
        if (fd < 0) {
@@ -95,9 +85,9 @@ end:
 }
 
 LTTNG_HIDDEN
-int fs_handle_seek(struct fs_handle *handle, off_t offset, int whence)
+off_t fs_handle_seek(struct fs_handle *handle, off_t offset, int whence)
 {
-        int ret;
+       off_t ret;
        const int fd = fs_handle_get_fd(handle);
 
        if (fd < 0) {
This page took 0.024111 seconds and 4 git commands to generate.