From: Kern Sibbald Date: Sun, 16 Oct 2011 13:34:46 +0000 (+0200) Subject: Eliminate complier warning X-Git-Tag: Release-7.0.0~545 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c38dc738eeca4a6b0a8ecdeee4829efab6e99416;p=bacula%2Fbacula Eliminate complier warning --- diff --git a/bacula/src/filed/backup.c b/bacula/src/filed/backup.c index ebed5bb9a7..0f61e0f9de 100644 --- a/bacula/src/filed/backup.c +++ b/bacula/src/filed/backup.c @@ -121,7 +121,7 @@ bool blast_data_to_storage_daemon(JCR *jcr, char *addr) * For the same reason, lzo compression is initialized here. */ #ifdef HAVE_LZO - jcr->compress_buf_size = MAX(jcr->buf_size + (jcr->buf_size / 16) + 67 + sizeof(comp_stream_header), jcr->buf_size + ((jcr->buf_size+999) / 1000) + 30); + jcr->compress_buf_size = MAX(jcr->buf_size + (jcr->buf_size / 16) + 67 + (int)sizeof(comp_stream_header), jcr->buf_size + ((jcr->buf_size+999) / 1000) + 30); jcr->compress_buf = get_memory(jcr->compress_buf_size); #else jcr->compress_buf_size = jcr->buf_size + ((jcr->buf_size+999) / 1000) + 30;