replace a few regular libc includes and function calls with their NSPR equivalents. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75651 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d497056eea
commit
f50bc0021f
@ -31,7 +31,6 @@
|
||||
* GPL.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include "nsLDAPMessage.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
@ -77,14 +76,14 @@ nsLDAPMessage::~nsLDAPMessage(void)
|
||||
break;
|
||||
case LDAP_SUCCESS:
|
||||
// timed out (dunno why LDAP_SUCCESS is used to indicate this)
|
||||
fprintf(stderr,
|
||||
PR_fprintf(PR_STDERR,
|
||||
"nsLDAPMessage::~nsLDAPMessage: ldap_msgfree() timed out.\n");
|
||||
break;
|
||||
default:
|
||||
// other failure
|
||||
// XXX - might errno conceivably be useful here?
|
||||
fprintf(stderr,"nsLDAPMessage::~nsLDAPMessage: ldap_msgfree: %s\n",
|
||||
ldap_err2string(rc));
|
||||
PR_fprintf(PR_STDERR,"nsLDAPMessage::~nsLDAPMessage: "
|
||||
"ldap_msgfree: %s\n", ldap_err2string(rc));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -160,9 +159,10 @@ nsLDAPMessage::GetErrorString(void)
|
||||
rc = ldap_parse_result(mConnectionHandle, mMsgHandle, &errcode, &matcheddn,
|
||||
&errmsg, &referrals, &serverctrls, 0);
|
||||
if (rc != LDAP_SUCCESS) {
|
||||
fprintf(stderr, "nsLDAPMessage::ErrorToString: ldap_parse_result: %s\n",
|
||||
ldap_err2string(rc));
|
||||
exit(-1);
|
||||
PR_fprintf(PR_STDERR,
|
||||
"nsLDAPMessage::ErrorToString: ldap_parse_result: %s\n",
|
||||
ldap_err2string(rc));
|
||||
// XXX need real err handling here
|
||||
}
|
||||
|
||||
if (matcheddn) ldap_memfree(matcheddn);
|
||||
|
||||
@ -247,7 +247,7 @@ nsLDAPOperation::UrlSearch(const char *aURL, // the search URL
|
||||
aAttrsOnly);
|
||||
if (this->mMsgId == -1) {
|
||||
// XXX
|
||||
abort();
|
||||
PR_Abort();
|
||||
#ifdef DEBUG
|
||||
char *s;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user