diff options
author | Junio C Hamano <junkio@cox.net> | 2006-09-01 09:17:47 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-01 09:24:06 +0200 |
commit | 839837b953c613c1649b9e36ec2f01da759d87e3 (patch) | |
tree | f654511cb7b6ab92d17bc65cdb87321deeb3553b /sha1_file.c | |
parent | gitweb: Fix git_blame (diff) | |
download | git-839837b953c613c1649b9e36ec2f01da759d87e3.tar.xz git-839837b953c613c1649b9e36ec2f01da759d87e3.zip |
Constness tightening for move/link_temp_to_file()
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to '')
-rw-r--r-- | sha1_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sha1_file.c b/sha1_file.c index af2bf72bab..ce90e200cb 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -1348,7 +1348,7 @@ char *write_sha1_file_prepare(void *buf, * * Returns the errno on failure, 0 on success. */ -static int link_temp_to_file(const char *tmpfile, char *filename) +static int link_temp_to_file(const char *tmpfile, const char *filename) { int ret; char *dir; @@ -1381,7 +1381,7 @@ static int link_temp_to_file(const char *tmpfile, char *filename) /* * Move the just written object into its final resting place */ -int move_temp_to_file(const char *tmpfile, char *filename) +int move_temp_to_file(const char *tmpfile, const char *filename) { int ret = link_temp_to_file(tmpfile, filename); |