]> asedeno.scripts.mit.edu Git - git.git/blobdiff - strbuf.c
Make some strbuf_*() struct strbuf arguments const.
[git.git] / 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) {