summaryrefslogtreecommitdiff
path: root/src/compression/warnmalloc.c
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 /src/compression/warnmalloc.c
parentdb972bad9178b95ee16110de186074476579bf89 (diff)
Made function arguments const where relevant.
Change-Id: I5b196b57976c8c718b079336a805188ccb03ef4b
Diffstat (limited to 'src/compression/warnmalloc.c')
-rw-r--r--src/compression/warnmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compression/warnmalloc.c b/src/compression/warnmalloc.c
index 36f0d9f..55bdaf7 100644
--- a/src/compression/warnmalloc.c
+++ b/src/compression/warnmalloc.c
@@ -14,7 +14,7 @@
#include "../../include/compression/tng_compress.h"
#include "../../include/compression/warnmalloc.h"
-void DECLSPECDLLEXPORT *Ptngc_warnmalloc_x(size_t size, char *file, int line)
+void DECLSPECDLLEXPORT *Ptngc_warnmalloc_x(const size_t size, char *file, const int line)
{
void *mem=malloc(size);
if (!mem)
@@ -25,7 +25,7 @@ void DECLSPECDLLEXPORT *Ptngc_warnmalloc_x(size_t size, char *file, int line)
return mem;
}
-void DECLSPECDLLEXPORT *Ptngc_warnrealloc_x(void *old, size_t size, char *file, int line)
+void DECLSPECDLLEXPORT *Ptngc_warnrealloc_x(void *old, const size_t size, char *file, const int line)
{
void *mem=realloc(old,size);
if (!mem)
contact: Jan Huwald // Impressum