]> git.sur5r.net Git - bacula/bacula/commitdiff
Eliminate complier warning
authorKern Sibbald <kern@sibbald.com>
Sun, 16 Oct 2011 13:34:46 +0000 (15:34 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:03 +0000 (14:50 +0200)
bacula/src/filed/backup.c

index ebed5bb9a7e93f6c904a530767cf5fc71f626026..0f61e0f9dea35671715a5150525fcc45f5d972fc 100644 (file)
@@ -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;