]> arthur.barton.de Git - bup.git/commitdiff
write_idx: make filename char* non-const (fixes python 2.6.6 compatibility).
authorRob Browning <rlb@defaultvalue.org>
Tue, 17 Sep 2013 22:17:55 +0000 (17:17 -0500)
committerRob Browning <rlb@defaultvalue.org>
Tue, 17 Sep 2013 22:17:57 +0000 (17:17 -0500)
Thanks to Alexander Barton <alex@barton.de> for the report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/_helpers.c

index 8381383553a5e0eb73b1874adad70d98fa25f0f0..fcd4b8c143a65a817645939fad5bc380c452a149 100644 (file)
@@ -484,7 +484,7 @@ static uint64_t htonll(uint64_t value)
 
 static PyObject *write_idx(PyObject *self, PyObject *args)
 {
-    const char *filename = NULL;
+    char *filename = NULL;
     PyObject *idx = NULL;
     PyObject *part;
     unsigned char *fmap = NULL;