]> wimlib.net Git - wimlib/blobdiff - src/dentry.c
Fix some compiler warnings
[wimlib] / src / dentry.c
index d2a45990aee830d810673b13a1ab518d7563f406..4dd26ee0352ab8f71194ed2c46975fdf6e10aa2b 100644 (file)
@@ -7,24 +7,27 @@
  * resource with its own security data and dentry tree.  Dentries in different
  * images may share file resources by referring to the same lookup table
  * entries.
+ */
+
+/*
  *
  * Copyright (C) 2010 Carl Thijssen
  * 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"
@@ -639,7 +642,7 @@ int read_dentry(const u8 metadata_resource[], u64 metadata_resource_len,
 
        p = get_u32(p, &dentry->attributes);
 #ifdef ENABLE_SECURITY_DATA
-       p = get_u32(p, &dentry->security_id);
+       p = get_u32(p, (u32*)&dentry->security_id);
 #else
        p += sizeof(u32);
 #endif