summaryrefslogtreecommitdiff
path: root/pcomplib.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2001-11-13 17:56:06 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:54 +0000
commitf73dda092b33638d2d5e9c35375f687a607b5403 (patch)
treef21584e70a444d6a1ecba0fb5e2cf79e8cce91db /pcomplib.c
parent28ef6c316f1aff914bb95ac09787a3c83c1815fd (diff)
downloadbash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.gz
Imported from ../bash-2.05a.tar.gz.
Diffstat (limited to 'pcomplib.c')
-rw-r--r--pcomplib.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/pcomplib.c b/pcomplib.c
index d531cf57..845f6ac1 100644
--- a/pcomplib.c
+++ b/pcomplib.c
@@ -41,6 +41,8 @@
HASH_TABLE *prog_completes = (HASH_TABLE *)NULL;
+static void free_progcomp __P((PTR_T));
+
static int progcomp_initialized = 0;
COMPSPEC *
@@ -127,7 +129,7 @@ num_progcomps ()
static void
free_progcomp (data)
- char *data;
+ PTR_T data;
{
COMPSPEC *cs;
@@ -195,7 +197,7 @@ find_compspec (cmd)
if (prog_completes == 0)
return ((COMPSPEC *)NULL);
- item = find_hash_item ((char *)cmd, prog_completes); /* XXX fix const later */
+ item = find_hash_item (cmd, prog_completes);
if (item == NULL)
return ((COMPSPEC *)NULL);
@@ -207,7 +209,7 @@ find_compspec (cmd)
void
print_all_compspecs (pfunc)
- VFunction *pfunc;
+ sh_csprint_func_t *pfunc;
{
BUCKET_CONTENTS *item_list;
int bucket;