fixed linux build warning

This commit is contained in:
jefft%netscape.com 1999-09-20 21:04:12 +00:00
parent 3c8c73a581
commit 2fd30a033c
2 changed files with 11 additions and 8 deletions

View File

@ -470,7 +470,7 @@ nsImapIncomingServer::CreateImapConnection(nsIEventQueue *aEventQueue,
{
// do nothing; return NS_OK; for queuing
}
else if (cnt < maxConnections && aEventQueue)
else if (cnt < ((PRUint32)maxConnections) && aEventQueue)
{
// create a new connection and add it to the connection cache
// we may need to flag the protocol connection as busy so we don't get

View File

@ -275,6 +275,7 @@ allow deleting of messages that have been kept on a POP3 server due to their siz
a preference to keep the messages on the server. When "deleting" messages we load
our state file, mark any messages we have for deletion and then re-save the state file.
*/
#ifdef OBSOLETE_CODE
extern char* ReadPopData(char *hostname, char* username, char* maildirectory);
extern void SavePopData(char *data, char* maildirectory);
extern void net_pop3_delete_if_in_server(char *data, char *uidl, PRBool *changed);
@ -322,6 +323,15 @@ void net_pop3_delete_if_in_server(char *data, char *uidl, PRBool *changed)
}
}
void KillPopData(char* data)
{
if (!data)
return;
net_pop3_free_state((Pop3UidlHost*) data);
}
#endif
static void
net_pop3_free_state(Pop3UidlHost* host)
{
@ -345,13 +355,6 @@ net_pop3_free_state(Pop3UidlHost* host)
}
}
void KillPopData(char* data)
{
if (!data)
return;
net_pop3_free_state((Pop3UidlHost*) data);
}
// nsPop3Protocol class implementation
nsPop3Protocol::nsPop3Protocol(nsIURI* aURL) : nsMsgLineBuffer(NULL, PR_FALSE)