diff --git a/src/bcrypt.c b/src/bcrypt.c index 576bd51..0e1b3f4 100644 --- a/src/bcrypt.c +++ b/src/bcrypt.c @@ -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(); diff --git a/src/mpw-tests-util.c b/src/mpw-tests-util.c index 57c72da..2db385e 100644 --- a/src/mpw-tests-util.c +++ b/src/mpw-tests-util.c @@ -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)