]> wimlib.net Git - wimlib/blobdiff - src/security.c
Fix some compiler warnings
[wimlib] / src / security.c
index cfc6fbd1874f3f20126d8f0121266533d8dc1237..65d8555c989a1373976d0316413cf2e24131ffbd 100644 (file)
@@ -3,23 +3,25 @@
  *
  * Read the security data from the WIM.  Doing anything with the security data
  * is not yet implemented other than printing some information about it.
- *
+ */
+
+/*
  * Copyright (C) 2012 Eric Biggers
  *
- * wimlib - Library for working with WIM files 
+ * This file is part of wimlib, a library for working with WIM files.
  *
- * 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; either version 2.1 of the License, or (at your option) any
- * later version.
+ * wimlib 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; either version 2.1 of the License, or (at your option)
+ * any later version.
  *
- * 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.
+ * wimlib 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., 59
- * Temple Place, Suite 330, Boston, MA 02111-1307 USA 
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with wimlib; if not, see http://www.gnu.org/licenses/.
  */
 
 #include "wimlib_internal.h"
@@ -72,7 +74,7 @@ int read_security_data(const u8 metadata_resource[],
 
        u64 size_no_descriptors = 8 + sizes_size;
        if (size_no_descriptors > sd->total_length) {
-               ERROR("Security data total length of %"PRIu64" is too short because\n"
+               ERROR("Security data total length of %u is too short because\n"
                                "there must be at least %"PRIu64" bytes of security "
                                "data!\n", sd->total_length, 
                                8 + sizes_size);
@@ -108,7 +110,7 @@ int read_security_data(const u8 metadata_resource[],
        for (uint i = 0; i < sd->num_entries; i++) {
                total_len += sd->sizes[i];
                if (total_len > sd->total_length) {
-                       ERROR("Security data total length of %"PRIu64" is too "
+                       ERROR("Security data total length of %u is too "
                                        "short because there are at least %"PRIu64" "
                                        "bytes of security data!\n", 
                                        sd->total_length, total_len);
@@ -255,7 +257,6 @@ void print_security_data(const struct wim_security_data *sd)
        } else {
                puts("Length            = 8 bytes\n"
                     "Number of Entries = 0");
-               return;
        }
        putchar('\n');
 }