diff options
| author | Rich Megginson <rmeggins@redhat.com> | 2009-07-07 13:22:45 -0600 |
|---|---|---|
| committer | Rich Megginson <rmeggins@redhat.com> | 2009-07-07 13:44:50 -0600 |
| commit | 386ba57d421ee2d59a267d52d63bd88cbf20c435 (patch) | |
| tree | 88db2ad09ae1f202a23ce45e6a430506be534ccd /ldap/servers/plugins/syntaxes | |
| parent | 209521323f731daad54682fd98715f7b22c88c78 (diff) | |
| download | ds-smallcleanup.tar.gz ds-smallcleanup.tar.xz ds-smallcleanup.zip | |
Clean up compiler warningssmallcleanupbasecleanup
This cleans up all of the compiler warnings produced with -Wall on RHEL/Fedora platforms.
The warnings about the %lld and %llu formats are still produced and cannot be helped.
Reviewed by: nkinder (Thanks!)
Diffstat (limited to 'ldap/servers/plugins/syntaxes')
| -rw-r--r-- | ldap/servers/plugins/syntaxes/string.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ldap/servers/plugins/syntaxes/string.c b/ldap/servers/plugins/syntaxes/string.c index 218cc762..c2f0fa60 100644 --- a/ldap/servers/plugins/syntaxes/string.c +++ b/ldap/servers/plugins/syntaxes/string.c @@ -210,6 +210,7 @@ string_filter_sub( Slapi_PBlock *pb, char *initial, char **any, char *final, int timelimit = 0; /* search timelimit */ Operation *op = NULL; Slapi_Regex *re = NULL; + const char *re_result = NULL; LDAPDebug( LDAP_DEBUG_FILTER, "=> string_filter_sub\n", 0, 0, 0 ); @@ -286,10 +287,10 @@ string_filter_sub( Slapi_PBlock *pb, char *initial, char **any, char *final, /* compile the regex */ p = (bigpat) ? bigpat : pat; tmpbuf = NULL; - re = slapi_re_comp( p, &tmpbuf ); + re = slapi_re_comp( p, &re_result ); if (NULL == re) { LDAPDebug( LDAP_DEBUG_ANY, "re_comp (%s) failed (%s): %s\n", - pat, p, tmpbuf?tmpbuf:"unknown" ); + pat, p, re_result?re_result:"unknown" ); rc = LDAP_OPERATIONS_ERROR; goto bailout; } else { |
