summaryrefslogtreecommitdiffstats
path: root/src/format.c
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-05-29 16:33:41 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-05-29 16:33:41 -0400
commitca4efef04651a0180682b0df42e4140e3e772a60 (patch)
tree72dc976da93995bb588094457b3b6dffd6052699 /src/format.c
parent920cd9bdd08b4e4401121cf1eb0b2d08b9da9e1e (diff)
downloadslapi-nis-ca4efef04651a0180682b0df42e4140e3e772a60.tar.gz
slapi-nis-ca4efef04651a0180682b0df42e4140e3e772a60.tar.xz
slapi-nis-ca4efef04651a0180682b0df42e4140e3e772a60.zip
- try to pull out NSPRisms where they're not needed
Diffstat (limited to 'src/format.c')
-rw-r--r--src/format.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/format.c b/src/format.c
index 7f9c89b..305842b 100644
--- a/src/format.c
+++ b/src/format.c
@@ -11,7 +11,7 @@ static int format_expand(struct plugin_state *state,
Slapi_PBlock *pb, Slapi_Entry *e,
const char *fmt,
char *outbuf, int outbuf_len,
- char ***visited_ndns, PRBool literal);
+ char ***visited_ndns, bool_t literal);
void
format_free_data(char *data)
@@ -427,7 +427,7 @@ format_match_generic(struct plugin_state *state,
const char *args, char *outbuf, int outbuf_len,
char ***visited_ndns,
const char *fnname,
- PRBool (*match_fn)(const char *pattern, const char *value))
+ bool_t (*match_fn)(const char *pattern, const char *value))
{
Slapi_ValueSet *values;
Slapi_Value *value;
@@ -556,7 +556,7 @@ format_match_generic(struct plugin_state *state,
}
/* Check for glob-style matched values. */
-static PRBool
+static bool_t
format_match_cb(const char *pattern, const char *value)
{
return fnmatch(pattern, value, 0) == 0;
@@ -573,12 +573,12 @@ format_match(struct plugin_state *state,
}
/* Check for a regex match. */
-static PRBool
+static bool_t
format_regmatch_cb(const char *pattern, const char *value)
{
regex_t reg;
regmatch_t matches;
- PRBool matched;
+ bool_t matched;
memset(&reg, 0, sizeof(reg));
if (regcomp(&reg, pattern, REG_NOSUB) != 0) {
return PR_FALSE;
@@ -695,7 +695,7 @@ format_expand(struct plugin_state *state, Slapi_PBlock *pb, Slapi_Entry *e,
const char *fmt,
char *outbuf, int outbuf_len,
char ***visited_ndns,
- PRBool literal)
+ bool_t literal)
{
int i, j;
int exp_len, level;