git.samba.org
/
metze
/
ctdb
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bef831
)
get rid of two compiler warnings
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 24 Aug 2010 03:35:33 +0000
(13:35 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 24 Aug 2010 04:00:10 +0000
(14:00 +1000)
tools/ctdb.c
patch
|
blob
|
history
diff --git
a/tools/ctdb.c
b/tools/ctdb.c
index 05a521e5fb6adec24e470b71ceaccc5aa4820776..bf76f73189baaa8907700fa3de61610d3a6cbdc6 100644
(file)
--- a/
tools/ctdb.c
+++ b/
tools/ctdb.c
@@
-3812,9
+3812,9
@@
static int control_restoredb(struct ctdb_context *ctdb, int argc, const char **a
return -1;
}
- dbname = d
bhdr.name
;
+ dbname = d
iscard_const(dbhdr.name)
;
if (argc == 2) {
- dbname =
argv[1]
;
+ dbname =
discard_const(argv[1])
;
}
outdata.dsize = dbhdr.size;