mirror of
https://gitlab.com/spectre.app/cli.git
synced 2024-11-01 02:41:44 +01:00
Build fixes.
This commit is contained in:
parent
12166d43c9
commit
2333c457e8
2 changed files with 1 additions and 12 deletions
|
@ -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 a new issue