]> git.sur5r.net Git - u-boot/blobdiff - fs/cramfs/uncompress.c
[new uImage] Rename and move print_image_hdr() routine
[u-boot] / fs / cramfs / uncompress.c
index 2e906eb4cfa498a2c61e1f5d39050fe6ef894628..e4189e51dd11fa4d2024f8259342dde95e8a6daf 100644 (file)
 
 static z_stream stream;
 
-#define ZALLOC_ALIGNMENT       16
-
-static void *zalloc (void *x, unsigned items, unsigned size)
-{
-       void *p;
-
-       size *= items;
-       size = (size + ZALLOC_ALIGNMENT - 1) & ~(ZALLOC_ALIGNMENT - 1);
-
-       p = malloc (size);
-
-       return (p);
-}
-
-static void zfree (void *x, void *addr, unsigned nb)
-{
-       free (addr);
-}
+void *zalloc(void *, unsigned, unsigned);
+void zfree(void *, void *, unsigned);
 
 /* Returns length of decompressed data. */
 int cramfs_uncompress_block (void *dst, void *src, int srclen)