aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wordsplit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wordsplit.c b/src/wordsplit.c
index 5468297..b4baeb3 100644
--- a/src/wordsplit.c
+++ b/src/wordsplit.c
@@ -919,13 +919,13 @@ node_split_prefix (struct wordsplit *wsp,
*ptail = newnode;
return 0;
}
static int
find_closing_paren (const char *str, size_t i, size_t len, size_t *poff,
- char *paren)
+ char const *paren)
{
enum { st_init, st_squote, st_dquote } state = st_init;
size_t level = 1;
for (; i < len; i++)
{
@@ -2115,25 +2115,25 @@ wordsplit_c_quoted_length (const char *str, int quote_hex, int *quote)
len += 4;
}
}
return len;
}
-int
+static int
wsplt_unquote_char (const char *transtab, int c)
{
while (*transtab && transtab[1])
{
if (*transtab++ == c)
return *transtab;
++transtab;
}
return 0;
}
-int
+static int
wsplt_quote_char (const char *transtab, int c)
{
for (; *transtab && transtab[1]; transtab += 2)
{
if (transtab[1] == c)
return *transtab;
@@ -2271,13 +2271,13 @@ wordsplit_c_quote_copy (char *dst, const char *src, int quote_hex)
}
/* This structure describes a single expansion phase */
struct exptab
{
- char *descr; /* Textual description (for debugging) */
+ char const *descr; /* Textual description (for debugging) */
int flag; /* WRDSF_ bit that controls this phase */
int opt; /* Entry-specific options (see EXPOPT_ flags below */
int (*expansion) (struct wordsplit *wsp); /* expansion function */
};
/* The following options control expansions: */

Return to:

Send suggestions and report system problems to the System administrator.