aboutsummaryrefslogtreecommitdiffstats
path: root/pcomplib.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2001-04-06 19:14:31 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:53 +0000
commit28ef6c316f1aff914bb95ac09787a3c83c1815fd (patch)
tree2812fe7ffc9beec4f99856906ddfcafda54cf16a /pcomplib.c
parentbb70624e964126b7ac4ff085ba163a9c35ffa18f (diff)
downloadandroid_external_bash-28ef6c316f1aff914bb95ac09787a3c83c1815fd.tar.gz
android_external_bash-28ef6c316f1aff914bb95ac09787a3c83c1815fd.tar.bz2
android_external_bash-28ef6c316f1aff914bb95ac09787a3c83c1815fd.zip
Imported from ../bash-2.05.tar.gz.
Diffstat (limited to 'pcomplib.c')
-rw-r--r--pcomplib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pcomplib.c b/pcomplib.c
index 133c6f4..d531cf5 100644
--- a/pcomplib.c
+++ b/pcomplib.c
@@ -52,6 +52,7 @@ alloc_compspec ()
ret->refcount = 0;
ret->actions = (unsigned long)0;
+ ret->options = (unsigned long)0;
ret->globpat = (char *)NULL;
ret->words = (char *)NULL;
@@ -93,6 +94,7 @@ copy_compspec (cs)
new->refcount = cs->refcount;
new->actions = cs->actions;
+ new->options = cs->options;
new->globpat = STRDUP (cs->globpat);
new->words = STRDUP (cs->words);
@@ -185,7 +187,7 @@ add_progcomp (cmd, cs)
COMPSPEC *
find_compspec (cmd)
- char *cmd;
+ const char *cmd;
{
register BUCKET_CONTENTS *item;
COMPSPEC *cs;
@@ -193,7 +195,7 @@ find_compspec (cmd)
if (prog_completes == 0)
return ((COMPSPEC *)NULL);
- item = find_hash_item (cmd, prog_completes);
+ item = find_hash_item ((char *)cmd, prog_completes); /* XXX fix const later */
if (item == NULL)
return ((COMPSPEC *)NULL);