diff options
| author | Noriko Hosoi <nhosoi@redhat.com> | 2007-06-11 17:22:38 +0000 |
|---|---|---|
| committer | Noriko Hosoi <nhosoi@redhat.com> | 2007-06-11 17:22:38 +0000 |
| commit | 3c6758091e1d5bd2eaec52981410d7a01cb2bfa5 (patch) | |
| tree | 32d0bc7b007fb8033cb6c6e721f851ebb545a068 /ldap/servers/plugins/replication/replutil.c | |
| parent | 941ed15d730bb365a5b056b37c81eccd10ca3c61 (diff) | |
Resolves: #243488
Summary: Use mozldap6 ldif_parse_line API
Changes:
1) Removed ldif.h from the DS tree.
2) Eliminated the 5-th arg of ldif_parse_line (errmsg) and the errmsg related
code.
Diffstat (limited to 'ldap/servers/plugins/replication/replutil.c')
| -rw-r--r-- | ldap/servers/plugins/replication/replutil.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ldap/servers/plugins/replication/replutil.c b/ldap/servers/plugins/replication/replutil.c index c86b14b9..c5e65ee7 100644 --- a/ldap/servers/plugins/replication/replutil.c +++ b/ldap/servers/plugins/replication/replutil.c @@ -428,8 +428,6 @@ parse_changes_string(char *str) slapi_mod_init (&mod, 0); while (line) { - char * errmsg = NULL; - if (strcasecmp (line, "-") == 0) { if (slapi_mod_isvalid (&mod)) @@ -446,14 +444,10 @@ parse_changes_string(char *str) break; } - rc = ldif_parse_line(line, &type, &value, &vlen, &errmsg); + rc = ldif_parse_line(line, &type, &value, &vlen); if (rc != 0) { /* ONREPL - log warning */ - if ( errmsg != NULL ) { - slapi_log_error( SLAPI_LOG_PARSE, repl_plugin_name, "%s", errmsg ); - PR_smprintf_free(errmsg ); - } slapi_log_error( SLAPI_LOG_REPL, repl_plugin_name, "Failed to parse the ldif line.\n"); continue; |
