get rid of two compiler warnings
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 24 Aug 2010 03:35:33 +0000 (13:35 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 24 Aug 2010 04:00:10 +0000 (14:00 +1000)
tools/ctdb.c

index 05a521e..bf76f73 100644 (file)
@@ -3812,9 +3812,9 @@ static int control_restoredb(struct ctdb_context *ctdb, int argc, const char **a
                return -1;
        }
 
-       dbname = dbhdr.name;
+       dbname = discard_const(dbhdr.name);
        if (argc == 2) {
-               dbname = argv[1];
+               dbname = discard_const(argv[1]);
        }
 
        outdata.dsize = dbhdr.size;