]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - logprint/logprint.c
xfsprogs: make static things static
[thirdparty/xfsprogs-dev.git] / logprint / logprint.c
index a5c9b324e194d71dff91822c872b19ea47e25b0a..7754a2a6e22164f44e0e646188b57cceef083ae4 100644 (file)
@@ -1,19 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2000-2004 Silicon Graphics, Inc.
  * All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it would 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 the Free Software Foundation,
- * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -37,9 +25,9 @@ int   print_overwrite;
 int     print_no_data;
 int     print_no_print;
 int     print_exit = 1; /* -e is now default. specify -c to override */
-int    print_operation = OP_PRINT;
+static int     print_operation = OP_PRINT;
 
-void
+static void
 usage(void)
 {
        fprintf(stderr, _("Usage: %s [options...] <device>\n\n\
@@ -64,7 +52,7 @@ Options:\n\
        exit(1);
 }
 
-int
+static int
 logstat(xfs_mount_t *mp)
 {
        int             fd;
@@ -80,7 +68,7 @@ logstat(xfs_mount_t *mp)
                        x.dname, strerror(errno));
                exit(1);
        }
-       lseek64(fd, 0, SEEK_SET);
+       lseek(fd, 0, SEEK_SET);
        if (read(fd, buf, sizeof(buf)) != sizeof(buf)) {
                fprintf(stderr, _("    read of XFS superblock failed\n"));
                exit(1);