summaryrefslogtreecommitdiff
path: root/examples/loadables/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/loadables/print.c')
-rw-r--r--examples/loadables/print.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/loadables/print.c b/examples/loadables/print.c
index 71449244..80943bc7 100644
--- a/examples/loadables/print.c
+++ b/examples/loadables/print.c
@@ -1,3 +1,7 @@
+/*
+ * print -- loadable ksh-93 style print builtin
+ */
+
#include "bashtypes.h"
#include <errno.h>
@@ -19,8 +23,6 @@ static int printargs ();
static FILE *ofp;
-extern char *ansicstr ();
-
extern char *this_command_name;
static char *print_doc[] = {
@@ -150,7 +152,7 @@ printargs (list, ofp)
for (sawc = 0, l = list; l; l = l->next)
{
- ostr = ansicstr (l->word->word, strlen (l->word->word), &sawc, (int *)0);
+ ostr = ansicstr (l->word->word, strlen (l->word->word), 0, &sawc, (int *)0);
fprintf (ofp, "%s", ostr);
free (ostr);
if (sawc)
@@ -160,4 +162,3 @@ printargs (list, ofp)
}
return (1);
}
-