]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff.c
Fix funny types used in attribute value representation
[thirdparty/git.git] / diff.c
diff --git a/diff.c b/diff.c
index a32078ea0177cb2a57e4a470bf6e50c81d6dd70d..5f501864e60899c7cdcaedeadaf996310a74be7b 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -1069,7 +1069,7 @@ static int file_is_binary(struct diff_filespec *one)
 
        setup_diff_attr_check(&attr_diff_check);
        if (!git_checkattr(one->path, 1, &attr_diff_check)) {
-               void *value = attr_diff_check.value;
+               const char *value = attr_diff_check.value;
                if (ATTR_TRUE(value))
                        return 0;
                else if (ATTR_FALSE(value))
@@ -1078,7 +1078,7 @@ static int file_is_binary(struct diff_filespec *one)
                        ;
                else
                        die("unknown value %s given to 'diff' attribute",
-                           (char *)value);
+                           value);
        }
 
        if (!one->data) {