aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorCarlos Rica <jasampler@gmail.com>2007-04-18 05:34:34 +0200
committerJunio C Hamano <junkio@cox.net>2007-04-17 22:00:18 -0700
commit1401f46bb42d1eb6225a5e08543c06a5b18fd3b7 (patch)
treebd3b43ebc26280bcddc31e59d7cd0351c150e14d /cache.h
parentab6029415b7e8acbc1beff7363c74bb94c3f0d9d (diff)
downloadgit-1401f46bb42d1eb6225a5e08543c06a5b18fd3b7.tar.gz
git-1401f46bb42d1eb6225a5e08543c06a5b18fd3b7.tar.xz
Use const qualifier for 'sha1' parameter in delete_ref function
delete_ref function does not change the 'sha1' parameter. Non-const pointer causes a compiler warning if you call to the function using a const argument. Signed-off-by: Carlos Rica <jasampler@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 1904131f2..7cedda684 100644
--- a/cache.h
+++ b/cache.h
@@ -213,7 +213,7 @@ struct lock_file {
extern int hold_lock_file_for_update(struct lock_file *, const char *path, int);
extern int commit_lock_file(struct lock_file *);
extern void rollback_lock_file(struct lock_file *);
-extern int delete_ref(const char *, unsigned char *sha1);
+extern int delete_ref(const char *, const unsigned char *sha1);
/* Environment bits from configuration mechanism */
extern int use_legacy_headers;