Package: jigit
Severity: normal
Tags: patch

When building 'jigit' on amd64 with gcc-4.0,
I get the following error:

cc -g -Wall -Werror -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
-D_LARGEFILE64_SOURCE   -c -o mkimage.o mkimage.c
cc1: warnings being treated as errors
mkimage.c: In function 'add_file_entry':
mkimage.c:358: warning: pointer targets in passing argument 1 of 
'find_file_in_md5_list' differ in signedness
mkimage.c: In function 'parse_file_block':
mkimage.c:699: warning: pointer targets in passing argument 1 of 
'find_file_in_md5_list' differ in signedness
make[1]: *** [mkimage.o] Error 1
make[1]: Leaving directory `/jigit-1.15'
make: *** [build-stamp] Error 2

With the attached patch 'jigit' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/jigit-1.15/mkimage.c ./mkimage.c
--- ../tmp-orig/jigit-1.15/mkimage.c    2005-01-17 23:57:24.000000000 +0100
+++ ./mkimage.c 2005-01-31 17:55:09.828386189 +0100
@@ -355,7 +355,7 @@
             ptr++;
     }
 
-    if (find_file_in_md5_list(base64_md5))
+    if (find_file_in_md5_list((unsigned char*)base64_md5))
         return 0; /* We already have an entry for this file; don't
                    * waste any more time on it */
 
@@ -696,7 +696,7 @@
     if (!quick)
         mk_MD5Init(&file_context);
 
-    md5_list_entry = find_file_in_md5_list(base64_md5);
+    md5_list_entry = find_file_in_md5_list((unsigned char*)base64_md5);
     if (md5_list_entry && file_size == md5_list_entry->file_size)
     {
         input_file = fopen(md5_list_entry->full_path, "rb");


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to