[PATCH] -Werror fixes
GCC's format __attribute__ is good for checking errors, especially with -Wformat=2 parameter. This fixes most of the reported problems against 2005-08-09 snapshot.
This commit is contained in:
committed by
Junio C Hamano
parent
96ad15ae2f
commit
4ec99bf080
@ -325,8 +325,8 @@ static void write_header(const unsigned char *sha1, char typeflag, const char *b
|
||||
memcpy(&header[257], "ustar", 6);
|
||||
memcpy(&header[263], "00", 2);
|
||||
|
||||
printf(&header[329], "%07o", 0); /* devmajor */
|
||||
printf(&header[337], "%07o", 0); /* devminor */
|
||||
sprintf(&header[329], "%07o", 0); /* devmajor */
|
||||
sprintf(&header[337], "%07o", 0); /* devminor */
|
||||
|
||||
memset(&header[148], ' ', 8);
|
||||
for (i = 0; i < RECORDSIZE; i++)
|
||||
|
||||
Reference in New Issue
Block a user