diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-04-02 18:42:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:04 -0500 |
commit | 6013b59b4456cd3989062e4428615b2aaa64a0cf (patch) | |
tree | 6bb0853076ed3f1363e3bb1a9a43ca6b686d511c /source3 | |
parent | d9741cde33108c91613dca8c7aa346af12524b12 (diff) | |
download | samba-6013b59b4456cd3989062e4428615b2aaa64a0cf.tar.gz samba-6013b59b4456cd3989062e4428615b2aaa64a0cf.tar.bz2 samba-6013b59b4456cd3989062e4428615b2aaa64a0cf.zip |
r22039: fix compiler warnings
metze
(This used to be commit 91402d7a42d9930e8e67bc67423b8b79db27f12d)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/tdb/tools/tdbtool.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source3/tdb/tools/tdbtool.c b/source3/tdb/tools/tdbtool.c index 137675a88f..88384a8cf5 100644 --- a/source3/tdb/tools/tdbtool.c +++ b/source3/tdb/tools/tdbtool.c @@ -38,7 +38,8 @@ #include "pstring.h" static int do_command(void); -char *cmdname, *arg1, *arg2; +const char *cmdname; +char *arg1, *arg2; size_t arg1len, arg2len; int do_connections; int bIterate = 0; @@ -209,7 +210,7 @@ static void terror(const char *why) printf("%s\n", why); } -static void create_tdb(char * tdbname) +static void create_tdb(const char *tdbname) { if (tdb) tdb_close(tdb); tdb = tdb_open(tdbname, 0, TDB_CLEAR_IF_FIRST, @@ -219,7 +220,7 @@ static void create_tdb(char * tdbname) } } -static void open_tdb(char *tdbname) +static void open_tdb(const char *tdbname) { if (tdb) tdb_close(tdb); tdb = tdb_open(tdbname, 0, 0, O_RDWR, 0600); @@ -639,17 +640,17 @@ static char *convert_string(char *instring, size_t *sizep) int main(int argc, char *argv[]) { - cmdname = (char *) ""; + cmdname = ""; arg1 = NULL; arg1len = 0; arg2 = NULL; arg2len = 0; if (argv[1]) { - cmdname = (char *) "open"; + cmdname = "open"; arg1 = argv[1]; do_command(); - cmdname = (char *) ""; + cmdname = ""; arg1 = NULL; } |