X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=entry.c;h=82bf7259a7d1d34a92a9bf214bccd9771748c582;hb=f02153696fc319c3c6dba2c27a5f7aed98eec465;hp=b51addbf8d0c766c1800dc5814ce50c35321143e;hpb=cc2903fc70ea9e1bb7788a6f5f46b5d3dd1b6fe4;p=git.git diff --git a/entry.c b/entry.c index b51addbf8..82bf7259a 100644 --- a/entry.c +++ b/entry.c @@ -1,7 +1,7 @@ #include "cache.h" #include "blob.h" -static void create_directories(const char *path, struct checkout *state) +static void create_directories(const char *path, const struct checkout *state) { int len = strlen(path); char *buf = xmalloc(len + 1); @@ -75,7 +75,7 @@ static void *read_blob_entry(struct cache_entry *ce, const char *path, unsigned return NULL; } -static int write_entry(struct cache_entry *ce, char *path, struct checkout *state, int to_tempfile) +static int write_entry(struct cache_entry *ce, char *path, const struct checkout *state, int to_tempfile) { int fd; long wrote; @@ -163,7 +163,7 @@ static int write_entry(struct cache_entry *ce, char *path, struct checkout *stat return 0; } -int checkout_entry(struct cache_entry *ce, struct checkout *state, char *topath) +int checkout_entry(struct cache_entry *ce, const struct checkout *state, char *topath) { static char path[PATH_MAX + 1]; struct stat st;