minor formatting
[flac.git] / src / libFLAC / md5.c
index 83e86ed..70fdedb 100644 (file)
 
 #include "private/md5.h"
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #ifndef FLaC__INLINE
 #define FLaC__INLINE
 #endif
@@ -229,10 +233,10 @@ FLAC__MD5Accumulate(struct MD5Context *ctx, const FLAC__int32 * const signal[],
        const unsigned bytes_needed = channels * samples * bytes_per_sample;
 
        if(ctx->capacity < bytes_needed) {
-               FLAC__byte *tmp = realloc(ctx->internal_buf, bytes_needed);
+               FLAC__byte *tmp = (FLAC__byte*)realloc(ctx->internal_buf, bytes_needed);
                if(0 == tmp) {
                        free(ctx->internal_buf);
-                       if(0 == (ctx->internal_buf = malloc(bytes_needed)))
+                       if(0 == (ctx->internal_buf = (FLAC__byte*)malloc(bytes_needed)))
                                return false;
                }
                ctx->internal_buf = tmp;