X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=logprint%2Flogprint.c;h=7754a2a6e22164f44e0e646188b57cceef083ae4;hb=00ff2b109df7a2911764cfb68bc45600fd27b7e9;hp=a5c9b324e194d71dff91822c872b19ea47e25b0a;hpb=92592be58e2fac449b603cb11986f6f754e2c66f;p=thirdparty%2Fxfsprogs-dev.git diff --git a/logprint/logprint.c b/logprint/logprint.c index a5c9b324e..7754a2a6e 100644 --- a/logprint/logprint.c +++ b/logprint/logprint.c @@ -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 #include @@ -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...] \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);