summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@test1n1.VSOFS1.COM>2008-11-28 11:29:43 +1100
committerroot <root@test1n1.VSOFS1.COM>2008-11-28 11:29:43 +1100
commit7592a97d163ffd6fceb15ff57f5067a67626ba7d (patch)
tree3908d1c36e51963dcb8f4f1e6f7f55f27a6cfdf3
parent51cc8b4df86b21a48ad1e54f277428b282d8a41f (diff)
downloadsamba-7592a97d163ffd6fceb15ff57f5067a67626ba7d.tar.gz
debuglevel is a signed int, not usnigned.
(This used to be ctdb commit e577a276900854622f4e9da9d1ccd7b484d0d1ec)
-rw-r--r--ctdb/tools/ctdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c
index c4932c24b7a..63fba20c64c 100644
--- a/ctdb/tools/ctdb.c
+++ b/ctdb/tools/ctdb.c
@@ -1845,7 +1845,7 @@ static int control_getdebug(struct ctdb_context *ctdb, int argc, const char **ar
static int control_setdebug(struct ctdb_context *ctdb, int argc, const char **argv)
{
int ret;
- uint32_t level;
+ int32_t level;
if (argc < 1) {
usage();
@@ -1854,7 +1854,7 @@ static int control_setdebug(struct ctdb_context *ctdb, int argc, const char **ar
if (isalpha(argv[0][0])) {
level = get_debug_by_desc(argv[0]);
} else {
- level = strtoul(argv[0], NULL, 0);
+ level = strtol(argv[0], NULL, 0);
}
ret = ctdb_ctrl_set_debuglevel(ctdb, options.pnn, level);