nsPrincipal *cur_prin = NULL;
nsIPrincipal *cur_prin = NULL;
RDF_RemovePrincipal(nsPrincipal *prin){  PRBool found = PR_FALSE;#ifdef ENABLE_RDF  nsCaps_lock();  RDFJSec_InitPrivilegeDB();  RDF_Cursor prin_cursor = RDFJSec_ListAllPrincipals();  if (prin_cursor == NULL) {    nsCaps_unlock();    return PR_FALSE;  }    JSec_Principal jsec_prin;  nsPrincipal *cur_prin = NULL;  while ((jsec_prin = RDFJSec_NextPrincipal(prin_cursor)) != NULL) {    if ((cur_prin = RDF_getPrincipal(jsec_prin)) == NULL) {      continue;    }    if (prin->equals(cur_prin)) {      found = PR_TRUE;      break;    }  }  RDFJSec_ReleaseCursor(prin_cursor);  if (found) {    RDFJSec_DeletePrincipal(jsec_prin);  }  nsCaps_unlock();#endif /* ENABLE_RDF */  return found;}