]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/python/py-breakpoint.c
Constify some linespec functions
[thirdparty/binutils-gdb.git] / gdb / python / py-breakpoint.c
index d57c2fa05e5145e46c61d6015ebfbdd2c617b1ac..86719d1b6eb90a971e7d78e2d0a02ade4b54fca2 100644 (file)
@@ -674,7 +674,7 @@ bppy_init (PyObject *self, PyObject *args, PyObject *kwargs)
     {
       gdb::unique_xmalloc_ptr<char>
        copy_holder (xstrdup (skip_spaces (spec)));
-      char *copy = copy_holder.get ();
+      const char *copy = copy_holder.get ();
 
       switch (type)
        {