Upgraded to latest libp2p and fixed some warnings

This commit is contained in:
John Jones 2017-02-02 14:14:59 -05:00
parent e88f40cad0
commit be4bee3119
3 changed files with 4 additions and 2 deletions

View file

@ -54,7 +54,8 @@ int ipfs_flatfs_create_directory(const char* full_directory) {
if (mkdir(full_directory) == -1) if (mkdir(full_directory) == -1)
#else #else
if (mkdir(full_directory, S_IRWXU) == -1) if (mkdir(full_directory, S_IRWXU) == -1)
#endif return 0; return 0;
#endif
return 1; return 1;
} }

View file

@ -32,6 +32,7 @@ int os_utils_setenv(const char* variable, const char* value, int overwrite) {
return 0; return 0;
#else #else
setenv(variable, value, overwrite); setenv(variable, value, overwrite);
return 1;
#endif #endif
} }

View file

@ -8,7 +8,7 @@
#include "ipfs/repo/config/identity.h" #include "ipfs/repo/config/identity.h"
#include "libp2p/crypto/rsa.h" #include "libp2p/crypto/rsa.h"
#include "libp2p/peerutils.h" #include "libp2p/crypto/peerutils.h"
#include "libp2p/crypto/encoding/base64.h" #include "libp2p/crypto/encoding/base64.h"
#include "libp2p/crypto/encoding/x509.h" #include "libp2p/crypto/encoding/x509.h"