Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Make some strbuf_*() struct strbuf arguments const.
[gitweb.git]
/
strbuf.c
diff --git
a/strbuf.c
b/strbuf.c
index 4aed75265e945d7b8dfafb36913006376768b4d3..7767170db3201dc34c43eaa100c84b6c70a8e568 100644
(file)
--- a/
strbuf.c
+++ b/
strbuf.c
@@
-67,7
+67,7
@@
void strbuf_rtrim(struct strbuf *sb)
sb->buf[sb->len] = '\0';
}
-int strbuf_cmp(
struct strbuf *a,
struct strbuf *b)
+int strbuf_cmp(
const struct strbuf *a, const
struct strbuf *b)
{
int cmp;
if (a->len < b->len) {