]> wimlib.net Git - wimlib/blobdiff - src/lz.c
License and documentation
[wimlib] / src / lz.c
index 94cfc69655f21dcd86bdfb983bcda22efdf7c1dc..2f01850b987d96b9fd0ad2bc15b3e38ac83728c9 100644 (file)
--- a/src/lz.c
+++ b/src/lz.c
  * This file is part of wimlib, a library for working with WIM files.
  *
  * 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)
+ * terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 3 of the License, or (at your option)
  * any later version.
  *
  * 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
+ * A PARTICULAR PURPOSE. See the GNU General Public License for more
  * details.
  *
- * You should have received a copy of the GNU Lesser General Public License
+ * You should have received a copy of the GNU General Public License
  * along with wimlib; if not, see http://www.gnu.org/licenses/.
  */
 
@@ -62,8 +62,7 @@ static inline uint update_hash(uint hash, u8 c)
  * indicating the end of the hash chain.
  */
 static inline uint insert_string(u16 hash_tab[], u16 prev_tab[], 
-                               const u8 window[], uint str_pos, 
-                                                       uint hash)
+                                const u8 window[], uint str_pos, uint hash)
 {
        hash = update_hash(hash, window[str_pos + 2]);
        prev_tab[str_pos] = hash_tab[hash];
@@ -206,10 +205,10 @@ static uint longest_match(const u8 window[], uint bytes_remaining,
  * intermediate representation of a match or literal byte.
  */
 uint lz_analyze_block(const u8 uncompressed_data[], uint uncompressed_len,
-                       u32 match_tab[], lz_record_match_t record_match,
-                       lz_record_literal_t record_literal, void *record_match_arg1,
-                       void *record_match_arg2, void *record_literal_arg,
-                       const struct lz_params *params)
+                     u32 match_tab[], lz_record_match_t record_match,
+                     lz_record_literal_t record_literal, void *record_match_arg1,
+                     void *record_match_arg2, void *record_literal_arg,
+                     const struct lz_params *params)
 {
        uint cur_match_pos = 0;
        uint cur_input_pos = 0;