]> wimlib.net Git - wimlib/commitdiff
lz_optimal.h: Fix typedefs
authorEric Biggers <ebiggers3@gmail.com>
Thu, 2 Jan 2014 16:15:54 +0000 (10:15 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 2 Jan 2014 16:15:54 +0000 (10:15 -0600)
include/wimlib/lz_optimal.h

index 3a07df5dabe3426716f3eedca3598861c2cb8601..00d3b6a48fd61f4c5990ec4133fe50914eecf338 100644 (file)
@@ -237,16 +237,16 @@ typedef void (*lz_skip_bytes_t)(LZ_COMPRESSOR *ctx, input_idx_t n);
  * most recently been searched.  This can optionally update the @state to take
  * into account format-dependent state that affects match costs, such as repeat
  * offsets.  */
  * most recently been searched.  This can optionally update the @state to take
  * into account format-dependent state that affects match costs, such as repeat
  * offsets.  */
-typedef lz_mc_cost_t (lz_get_prev_literal_cost_t)(LZ_COMPRESSOR *ctx,
-                                                 LZ_ADAPTIVE_STATE *state);
+typedef lz_mc_cost_t (*lz_get_prev_literal_cost_t)(LZ_COMPRESSOR *ctx,
+                                                  LZ_ADAPTIVE_STATE *state);
 
 /* Get the cost of a match.  This can optionally update the @state to take into
  * account format-dependent state that affects match costs, such as repeat
  * offsets.  */
 
 /* Get the cost of a match.  This can optionally update the @state to take into
  * account format-dependent state that affects match costs, such as repeat
  * offsets.  */
-typedef lz_mc_cost_t (lz_get_match_cost_t)(LZ_COMPRESSOR *ctx,
-                                          LZ_ADAPTIVE_STATE *state,
-                                          input_idx_t length,
-                                          input_idx_t offset);
+typedef lz_mc_cost_t (*lz_get_match_cost_t)(LZ_COMPRESSOR *ctx,
+                                           LZ_ADAPTIVE_STATE *state,
+                                           input_idx_t length,
+                                           input_idx_t offset);
 
 /*
  * lz_get_near_optimal_match() -
 
 /*
  * lz_get_near_optimal_match() -