From 1080edca8b9824f063364a7d2a400a8026589dd5 Mon Sep 17 00:00:00 2001 From: "morse%netscape.com" Date: Fri, 20 Aug 1999 02:16:05 +0000 Subject: [PATCH] remove build warnings --- extensions/wallet/src/singsign.cpp | 26 +++++++++++------------ webshell/tests/viewer/nsBrowserWindow.cpp | 4 ++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/extensions/wallet/src/singsign.cpp b/extensions/wallet/src/singsign.cpp index 7909108e2484..67bc2c28df1b 100644 --- a/extensions/wallet/src/singsign.cpp +++ b/extensions/wallet/src/singsign.cpp @@ -112,14 +112,14 @@ si_PromptUsernameAndPassword(char *szMessage, char **szUsername, char **szPasswo nsresult res; NS_WITH_SERVICE(nsIPrompt, dialog, kNetSupportDialogCID, &res); if (NS_FAILED(res)) { - return NULL; /* failure value */ + return PR_FALSE; /* failure value */ } const nsString message = szMessage; PRUnichar* usr; PRUnichar* pwd; res = dialog->PromptUsernameAndPassword(message.GetUnicode(), &usr, &pwd, &retval); if (NS_FAILED(res)) { - return NULL; /* failure value */ + return PR_FALSE; /* failure value */ } username = usr; delete[] usr; @@ -136,7 +136,7 @@ si_PromptUsernameAndPassword(char *szMessage, char **szUsername, char **szPasswo nsresult res = nsServiceManager::GetService(kNetSupportDialogCID, nsINetSupportDialogService::GetIID(), (nsISupports**)&dialog); if (NS_FAILED(res)) { - return NULL; /* failure value */ + return PR_FALSE; /* failure value */ } if (dialog) { const nsString message = szMessage; @@ -249,7 +249,7 @@ si_SelectDialog(const char* szMessage, char** pList, PRInt32* pCount) { nsresult res; NS_WITH_SERVICE(nsIPrompt, dialog, kNetSupportDialogCID, &res); if (NS_FAILED(res)) { - return NULL; /* failure value */ + return PR_FALSE; /* failure value */ } const nsString message = szMessage; #ifdef xxx @@ -1014,12 +1014,12 @@ si_GetURLAndUserForChangeForm(char* password) for (PRInt32 i2=0; i2ElementAt(i2)); PRInt32 userCount = LIST_COUNT(url->signonUser_list); - for (PRInt32 i=0; isignonUser_list->ElementAt(i)); + for (PRInt32 i3=0; i3signonUser_list->ElementAt(i3)); /* find saved password and see if it matches password user just entered */ PRInt32 dataCount = LIST_COUNT(user->signonData_list); - for (PRInt32 i=0; isignonData_list->ElementAt(i)); + for (PRInt32 i4=0; i4signonData_list->ElementAt(i4)); if (data->isPassword && !PL_strcmp(data->value, password)) { /* passwords match so add entry to list */ /* consider first data node to be the identifying item */ @@ -1312,8 +1312,8 @@ si_PutData(char * URLName, LO_FormSubmitData * submit, PRBool save) { user = NS_STATIC_CAST(si_SignonUserStruct*, url->signonUser_list->ElementAt(i2)); PRInt32 j = 0; PRInt32 dataCount = LIST_COUNT(user->signonData_list); - for (PRInt32 i=0; isignonData_list->ElementAt(i)); + for (PRInt32 i3=0; i3signonData_list->ElementAt(i3)); mismatch = PR_FALSE; @@ -1365,9 +1365,9 @@ si_PutData(char * URLName, LO_FormSubmitData * submit, PRBool save) { /* update the saved password values */ j = 0; - PRInt32 dataCount = LIST_COUNT(user->signonData_list); - for (PRInt32 i=0; isignonData_list->ElementAt(i)); + PRInt32 dataCount2 = LIST_COUNT(user->signonData_list); + for (PRInt32 i4=0; i4signonData_list->ElementAt(i4)); /* skip non text/password fields */ while ((j < submit->value_cnt) && diff --git a/webshell/tests/viewer/nsBrowserWindow.cpp b/webshell/tests/viewer/nsBrowserWindow.cpp index 408fc2520e89..9fd7a7fff268 100644 --- a/webshell/tests/viewer/nsBrowserWindow.cpp +++ b/webshell/tests/viewer/nsBrowserWindow.cpp @@ -602,8 +602,8 @@ nsBrowserWindow::DispatchMenuItem(PRInt32 aID) kIWalletServiceIID, (nsISupports **)&walletservice); if ((NS_OK == res) && (nsnull != walletservice)) { - nsString urlString = nsString(""); - res = walletservice->WALLET_Prefill(shell, urlString, (PRVCY_QPREFILL == aID)); + nsString urlString2 = nsString(""); + res = walletservice->WALLET_Prefill(shell, urlString2, (PRVCY_QPREFILL == aID)); NS_RELEASE(walletservice); }