]> arthur.barton.de Git - netatalk.git/commitdiff
Remove some const attributes on variables that change. This should
authorjmarcus <jmarcus>
Mon, 31 Dec 2001 18:40:08 +0000 (18:40 +0000)
committerjmarcus <jmarcus>
Mon, 31 Dec 2001 18:40:08 +0000 (18:40 +0000)
get this to compile correctly.

etc/atalkd/config.c

index 1015220a245bedd1cc2d6f65ca5d50fe390c6b92..c5f616239aba6a53fe3f7b78ec0cd68291e32c57 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: config.c,v 1.8 2001-12-30 18:30:52 srittau Exp $
+ * $Id: config.c,v 1.9 2001-12-31 18:40:08 jmarcus Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
@@ -81,9 +81,9 @@ static struct param {
 };
 
 #define ARGV_CHUNK_SIZE 128
-const char **parseline(const char *line)
+char **parseline(char *line)
 {
-    const char  *p;
+    char        *p;
     int                  argc = 0;
     char        *buffer;
     char       **argv;
@@ -156,7 +156,7 @@ const char **parseline(const char *line)
     /* We store our buffer pointer in argv, too, so we can free it later.
      * (But don't tell anyone.)
      */
-    argv[ argv ] = buffer;
+    argv[ argc ] = buffer;
 
     return argv;
 }