diff options
author | Noriko Hosoi <nhosoi@kiki.usersys.redhat.com> | 2009-06-03 08:48:14 -0700 |
---|---|---|
committer | Noriko Hosoi <nhosoi@kiki.usersys.redhat.com> | 2009-06-03 08:48:14 -0700 |
commit | dacd95700c876d7202193683ed52aec9f3c19f48 (patch) | |
tree | 6c55bdb3eff660f1e78c82f6ca5e7fbce046e1f0 /ldap/servers/slapd/slapi-plugin.h | |
parent | d7828f54c12f0c50e7165f8d7e849f8ffa3ff167 (diff) | |
download | ds-dacd95700c876d7202193683ed52aec9f3c19f48.tar.gz ds-dacd95700c876d7202193683ed52aec9f3c19f48.tar.xz ds-dacd95700c876d7202193683ed52aec9f3c19f48.zip |
Compiler warnings and paged results on DSE
1) Fixing compiler warnings on regex.c.
2) Adding dse_search_set_release to dse.c to support simple paged results on DSE.
Diffstat (limited to 'ldap/servers/slapd/slapi-plugin.h')
-rw-r--r-- | ldap/servers/slapd/slapi-plugin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ldap/servers/slapd/slapi-plugin.h b/ldap/servers/slapd/slapi-plugin.h index b5e3441a..135f49b7 100644 --- a/ldap/servers/slapd/slapi-plugin.h +++ b/ldap/servers/slapd/slapi-plugin.h @@ -3364,7 +3364,7 @@ typedef struct slapi_regex_handle Slapi_Regex; * the compiled pattern. NULL if the compile fails. * \warning The regex handler should be released by slapi_re_free(). */ -Slapi_Regex *slapi_re_comp( char *pat, char **error ); +Slapi_Regex *slapi_re_comp( const char *pat, const char **error ); /** * Matches a compiled regular expression pattern against a given string. * A thin wrapper of pcre_exec. @@ -3378,7 +3378,7 @@ Slapi_Regex *slapi_re_comp( char *pat, char **error ); * \return This function returns other values if any error occurred. * \warning The regex handler should be released by slapi_re_free(). */ -int slapi_re_exec( Slapi_Regex *re_handle, char *subject, time_t time_up ); +int slapi_re_exec( Slapi_Regex *re_handle, const char *subject, time_t time_up ); /** * Substitutes '&' or '\#' in the param src with the matched string. * @@ -3391,7 +3391,7 @@ int slapi_re_exec( Slapi_Regex *re_handle, char *subject, time_t time_up ); * \return This function returns 0 if the substitution failed. * \warning The regex handler should be released by slapi_re_free(). */ -int slapi_re_subs( Slapi_Regex *re_handle, char *subject, char *src, char **dst, unsigned long dstlen ); +int slapi_re_subs( Slapi_Regex *re_handle, const char *subject, const char *src, char **dst, unsigned long dstlen ); /** * Releases the regex handler which was returned from slapi_re_comp. * |