Fix compiler warnings.

git-svn-id: svn://10.0.0.236/trunk@103361 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
relyea%netscape.com
2001-09-20 22:01:37 +00:00
parent 22d7ca9cce
commit eca0a94b81
4 changed files with 4 additions and 5 deletions

View File

@@ -389,7 +389,6 @@ writeDataToSocket(PRFileDesc *sslSocket, DataBuffer *buffer, char *fileName)
PORT_Free(fileName);
/* Maybe a GET not sent from client.c? */
goto writerequest;
return SECSuccess;
}
local_file_fd = PR_Open(fileName, PR_RDONLY, 0);

View File

@@ -74,7 +74,7 @@ SSL_Strerror(PRErrorCode errNum) {
* binary search depends on it.
*/
if (!initDone) {
PRErrorCode lastNum = 0x80000000;
PRErrorCode lastNum = (PRInt32)0x80000000;
for (i = low; i <= high; ++i) {
num = errStrings[i].errNum;
if (num <= lastNum) {

View File

@@ -34,7 +34,7 @@
/*
* p7content -- A command to display pkcs7 content.
*
* $Id: p7content.c,v 1.5 2001-02-01 00:54:34 kirke%netscape.com Exp $
* $Id: p7content.c,v 1.6 2001-09-20 21:58:33 relyea%netscape.com Exp $
*/
#include "nspr.h"
@@ -127,7 +127,7 @@ DecodeAndPrintFile(FILE *out, PRFileDesc *in, char *progName)
SEC_PKCS7DecoderUpdate(dcx, derdata.data + i, 1);
}
#else
SEC_PKCS7DecoderUpdate(dcx, derdata.data, derdata.len);
SEC_PKCS7DecoderUpdate(dcx, (char *)derdata.data, derdata.len);
#endif
cinfo = SEC_PKCS7DecoderFinish(dcx);
}

View File

@@ -340,7 +340,7 @@ int main(int argc, char **argv)
case 'v': verbose++; break;
case 'w':
password = optstate->value;
password = PORT_Strdup(optstate->value);
useCommandLinePassword = PR_TRUE;
break;