nsFileSpec locklocspec(lockstr);
nsFileSpec locklocspec(lockstr.get());
PRBool YieldSpoolLock(const char *spoolnameStr){#ifdef MOVEMAIL_DEBUG    fprintf(stderr, "<<Attempting lockfile removal: %s.lock>>",            spoolnameStr);#endif    nsCAutoString lockstr(spoolnameStr);    lockstr.Append(".lock");    nsresult rv;    // Create nsFileSpec and nsILocalFile for the spool.lock file    nsFileSpec locklocspec(lockstr);    nsCOMPtr<nsILocalFile> locklocfile;    rv = NS_FileSpecToIFile(&locklocspec, getter_AddRefs(locklocfile));    if (NS_FAILED(rv))        return PR_FALSE;    // Delete the file    rv = locklocfile->Remove(PR_FALSE /* non-recursive */);    if (NS_FAILED(rv))        return PR_FALSE;#ifdef MOVEMAIL_DEBUG    fprintf(stderr, " LOCK YIELDING WAS SUCCESSFUL.\n");#endif    // Success.    return PR_TRUE;}