From 55e30cb454c73bdbbf994dcf4bc59b9c73276fcb Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Fri, 20 Sep 2019 15:01:52 -0400 Subject: [PATCH] Build fixes. --- platform-independent/c/cli/src/bcrypt.c | 2 +- platform-independent/c/cli/src/mpw-tests-util.c | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/platform-independent/c/cli/src/bcrypt.c b/platform-independent/c/cli/src/bcrypt.c index 576bd510..0e1b3f48 100644 --- a/platform-independent/c/cli/src/bcrypt.c +++ b/platform-independent/c/cli/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/platform-independent/c/cli/src/mpw-tests-util.c b/platform-independent/c/cli/src/mpw-tests-util.c index 57c72dab..2db385e0 100644 --- a/platform-independent/c/cli/src/mpw-tests-util.c +++ b/platform-independent/c/cli/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)