Correct some sizeof(size_t) != sizeof(unsigned long) typing errors

Fix size_t vs. unsigned long pointer mismatch warnings introduced
with the addition of strbuf_detach().

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
René Scharfe
2007-10-21 11:23:49 +02:00
committed by Shawn O. Pearce
parent 5be507fc95
commit c32f749fec
4 changed files with 13 additions and 5 deletions

View File

@ -119,8 +119,10 @@ static int write_entry(struct cache_entry *ce, char *path, const struct checkout
*/
strbuf_init(&buf, 0);
if (convert_to_working_tree(ce->name, new, size, &buf)) {
size_t newsize = 0;
free(new);
new = strbuf_detach(&buf, &size);
new = strbuf_detach(&buf, &newsize);
size = newsize;
}
if (to_tempfile) {