upload-pack: use object pointer not copy of sha1 to keep track of has/needs.
[gitweb.git] / builtin-rev-parse.c
index 4377d357c4ee173835ac19d77572d361431baa58..b3e4386c1baec7c3a56704e61e44e575203ab759 100644 (file)
@@ -164,7 +164,7 @@ static int show_file(const char *arg)
        return 0;
 }
 
-static int try_difference(char *arg)
+static int try_difference(const char *arg)
 {
        char *dotdot;
        unsigned char sha1[20];