Author: tridge
Date: 2004-10-28 13:51:41 +0000 (Thu, 28 Oct 2004)
New Revision: 3327

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/client&rev=3327&nolog=1

Log:
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.

Modified:
   branches/SAMBA_4_0/source/client/clitar.c


Changeset:
Modified: branches/SAMBA_4_0/source/client/clitar.c
===================================================================
--- branches/SAMBA_4_0/source/client/clitar.c   2004-10-28 13:50:13 UTC (rev 3326)
+++ branches/SAMBA_4_0/source/client/clitar.c   2004-10-28 13:51:41 UTC (rev 3327)
@@ -1441,19 +1441,19 @@
 /****************************************************************************
 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;
 

Reply via email to