]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - io/mmap.c
xfs: fix inverted return from xfs_btree_sblock_verify_crc
[thirdparty/xfsprogs-dev.git] / io / mmap.c
index 106be4998981938c0fea4978a35a634298bf4b7f..f9383e5e790de7b599671df21a981dd956306a43 100644 (file)
--- a/io/mmap.c
+++ b/io/mmap.c
@@ -1,19 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2004-2005 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 "command.h"
@@ -302,7 +290,7 @@ msync_help(void)
 "\n"));
 }
 
-int
+static int
 msync_f(
        int             argc,
        char            **argv)
@@ -386,7 +374,7 @@ mread_help(void)
 "\n"));
 }
 
-int
+static int
 mread_f(
        int             argc,
        char            **argv)
@@ -448,7 +436,7 @@ mread_f(
 
        if (alloc_buffer(pagesize, 0, 0) < 0)
                return 0;
-       bp = (char *)buffer;
+       bp = (char *)io_buffer;
 
        dumplen = length % pagesize;
        if (!dumplen)
@@ -463,7 +451,7 @@ mread_f(
                                        dump_buffer(printoffset, dumplen);
                                        printoffset += dumplen;
                                }
-                               bp = (char *)buffer;
+                               bp = (char *)io_buffer;
                                dumplen = pagesize;
                                cnt = 0;
                        } else {
@@ -478,7 +466,7 @@ mread_f(
                                if (dump)
                                        dump_buffer(printoffset + tmp -
                                                (dumplen - 1), dumplen);
-                               bp = (char *)buffer;
+                               bp = (char *)io_buffer;
                                dumplen = pagesize;
                                cnt = 0;
                        } else {
@@ -489,7 +477,7 @@ mread_f(
        return 0;
 }
 
-int
+static int
 munmap_f(
        int             argc,
        char            **argv)
@@ -543,7 +531,7 @@ mwrite_help(void)
 "\n"));
 }
 
-int
+static int
 mwrite_f(
        int             argc,
        char            **argv)
@@ -630,7 +618,7 @@ mremap_help(void)
 "\n"));
 }
 
-int
+static int
 mremap_f(
        int             argc,
        char            **argv)