summaryrefslogtreecommitdiff
path: root/include/compression/huffman.h
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2014-12-04 16:05:42 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2014-12-08 13:35:27 (GMT)
commitb6c0fbcbb224c894eb90cc920c6ecb8e8d48e66a (patch)
tree945db6cb55f72e09c56e2846eaa355f8c6bc472d /include/compression/huffman.h
parentdb972bad9178b95ee16110de186074476579bf89 (diff)
Made function arguments const where relevant.
Change-Id: I5b196b57976c8c718b079336a805188ccb03ef4b
Diffstat (limited to 'include/compression/huffman.h')
-rw-r--r--include/compression/huffman.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/compression/huffman.h b/include/compression/huffman.h
index 49347de..f2ce187 100644
--- a/include/compression/huffman.h
+++ b/include/compression/huffman.h
@@ -12,8 +12,8 @@
#ifndef HUFFMAN_H
#define HUFFMAN_H
-void Ptngc_comp_conv_to_huffman(unsigned int *vals, int nvals,
- unsigned int *dict, int ndict,
+void Ptngc_comp_conv_to_huffman(unsigned int *vals, const int nvals,
+ unsigned int *dict, const int ndict,
unsigned int *prob,
unsigned char *huffman,
int *huffman_len,
@@ -23,11 +23,11 @@ void Ptngc_comp_conv_to_huffman(unsigned int *vals, int nvals,
int *huffman_dict_unpackedlen);
void Ptngc_comp_conv_from_huffman(unsigned char *huffman,
- unsigned int *vals, int nvals,
- int ndict,
+ unsigned int *vals, const int nvals,
+ const int ndict,
unsigned char *huffman_dict,
- int huffman_dictlen,
+ const int huffman_dictlen,
unsigned int *huffman_dict_unpacked,
- int huffman_dict_unpackedlen);
+ const int huffman_dict_unpackedlen);
#endif
contact: Jan Huwald // Impressum