summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-28 13:51:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:55 -0500
commit8004eac37fde476e3394da28a25a45cc8585bab9 (patch)
treedb1cad51120f6cf82e2d1d834a805dc5c9084f9f /source4
parent428d9f7c610dd465fe026f58b464979e5e1453d9 (diff)
downloadsamba-8004eac37fde476e3394da28a25a45cc8585bab9.tar.gz
samba-8004eac37fde476e3394da28a25a45cc8585bab9.tar.bz2
samba-8004eac37fde476e3394da28a25a45cc8585bab9.zip
r3327: fixed another warning
we're now down the the last few warnings. Most are enum warnings caused by unfinished code (unhandled enum levels). If you want to get rid of those then work on finishing that code. (This used to be commit b62f7bb971c94be666ef816b24e93a14fd90f5e0)
Diffstat (limited to 'source4')
-rw-r--r--source4/client/clitar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/client/clitar.c b/source4/client/clitar.c
index e10a6b6698..7a4cea4ac7 100644
--- a/source4/client/clitar.c
+++ b/source4/client/clitar.c
@@ -1441,19 +1441,19 @@ int cmd_setmode(const char **cmd_ptr)
/****************************************************************************
Principal command for creating / extracting
***************************************************************************/
-int cmd_tar(char **cmd_ptr)
+int cmd_tar(const char **cmd_ptr)
{
fstring buf;
char **argl;
int argcl;
- if (!next_token((const char **)cmd_ptr,buf,NULL,sizeof(buf)))
+ if (!next_token(cmd_ptr,buf,NULL,sizeof(buf)))
{
DEBUG(0,("tar <c|x>[IXbgan] <filename>\n"));
return 1;
}
- argl=toktocliplist(*cmd_ptr, &argcl, NULL);
+ argl=toktocliplist(discard_const_p(char, *cmd_ptr), &argcl, NULL);
if (!tar_parseargs(argcl, argl, buf, 0))
return 1;