changeset 2799:d42fd97115f5

(quotearg_n_options): Don't make the initial slot vector a constant, since it might get modified.
author Jim Meyering <jim@meyering.net>
date Mon, 31 Jul 2000 18:30:21 +0000
parents 29c7830bc89c
children 70a632b8f17c
files lib/quotearg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/quotearg.c	Mon Jul 31 12:31:44 2000 +0000
+++ b/lib/quotearg.c	Mon Jul 31 18:30:21 2000 +0000
@@ -539,8 +539,8 @@
       size_t size;
       char *val;
     };
-  static struct slotvec const slotvec0 = {sizeof slot0, slot0};
-  static struct slotvec *slotvec = (struct slotvec *) &slotvec0;
+  static struct slotvec slotvec0 = {sizeof slot0, slot0};
+  static struct slotvec *slotvec = &slotvec0;
 
   if (nslots <= n)
     {