X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=diffcore.h;h=633d1ae5cf708cca4b907f0f032294f78d7bbe18;hb=e70a165d3db26dbab62e3430553a21d5e97b74ec;hp=ac159d7154ce02034eb88dab279894e5572da7b6;hpb=f9e7750621ca5e067f58a679caff5ff2f9881c4c;p=git.git diff --git a/diffcore.h b/diffcore.h index ac159d71..633d1ae5 100644 --- a/diffcore.h +++ b/diffcore.h @@ -33,7 +33,7 @@ struct diff_filespec { * if false, use the name and read from * the filesystem. */ -#define DIFF_FILE_VALID(spec) ((spec) && ((spec)->mode) != 0) +#define DIFF_FILE_VALID(spec) (((spec)->mode) != 0) unsigned should_free : 1; /* data should be free()'ed */ unsigned should_munmap : 1; /* data should be munmap()'ed */ }; @@ -43,7 +43,7 @@ extern void fill_filespec(struct diff_filespec *, const unsigned char *, unsigned short); extern int diff_populate_filespec(struct diff_filespec *, int); -extern void diff_free_filespec_data(struct diff_filespec *); +extern void diff_free_filespec(struct diff_filespec *); struct diff_filepair { struct diff_filespec *one;