summaryrefslogtreecommitdiff
path: root/entry.c
diff options
context:
space:
mode:
authorLuiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>2007-04-25 11:18:08 -0300
committerJunio C Hamano <junkio@cox.net>2007-04-25 13:15:59 -0700
commitefbc5831264fbe3696e6fc264bba9319265d7344 (patch)
tree1fc6fe6068ecef2c3ef956f332433dac6245b4ad /entry.c
parentcc2903fc70ea9e1bb7788a6f5f46b5d3dd1b6fe4 (diff)
downloadgit-efbc5831264fbe3696e6fc264bba9319265d7344.tar.gz
entry.c: Use const qualifier for 'struct checkout' parameters
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'entry.c')
-rw-r--r--entry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/entry.c b/entry.c
index b51addbf8d..82bf7259a7 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;