Build fixes.
This commit is contained in:
parent
64577d5e0f
commit
55e30cb454
@ -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();
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user