Re: [PATCH] builtin-bundle - use buffered reads for bundle header
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 11, 2007, 00:31 UTC
- Message-ID
- <7vk5s2rjxj.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <11867920441883-git-send-email-mdl123@verizon.net>
Is this just me (I am writing this from an unfamiliar terminal), or is your patch somehow breaks all indentation?
/* returns an fd */
static int read_header(const char *path, struct bundle_header *header) {
char buffer[1024];
- int fd = open(path, O_RDONLY);
+ int fd;
+ long fpos;
+ FILE *ffd = fopen(path, "r");