2
0

Build fixes.

This commit is contained in:
Maarten Billemont 2019-09-20 15:01:52 -04:00
parent 64577d5e0f
commit 55e30cb454
2 changed files with 1 additions and 12 deletions

View File

@ -74,7 +74,7 @@ bcrypt_initsalt(int log_rounds, uint8_t *salt, size_t saltbuflen) {
// Switching to PRNG rand() for portability. Do not use in production code.
//arc4random_buf( csalt, sizeof( csalt ) );
srand( time( NULL ) );
srand( (unsigned)time( NULL ) );
for (int s = 0; s < sizeof( csalt ); ++s)
csalt[s] = (uint8_t)rand();

View File

@ -32,17 +32,6 @@
#include "mpw-tests-util.h"
static xmlChar const *mpw_xmlPath(xmlNodePtr context) {
if (context->parent) {
char *string = calloc( 256, 1 );
snprintf( string, 256, "%s/%s", mpw_xmlPath( context->parent ), context->name );
return BAD_CAST string;
}
return context->name? context->name: (xmlChar const *)"";
}
xmlNodePtr mpw_xmlTestCaseNode(xmlNodePtr testCaseNode, const char *nodeName) {
if (!nodeName)