mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
Move sodium_init() to initLibStore()
Part of an effort to make it easier to initialize the right things, by moving code into the appropriate libraries.
This commit is contained in:
parent
9693076715
commit
a58be39476
2 changed files with 5 additions and 5 deletions
|
|
@ -28,8 +28,6 @@
|
|||
|
||||
#include <openssl/crypto.h>
|
||||
|
||||
#include <sodium.h>
|
||||
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
|
@ -164,9 +162,6 @@ void initNix()
|
|||
initLibUtil();
|
||||
initLibStore();
|
||||
|
||||
if (sodium_init() == -1)
|
||||
throw Error("could not initialise libsodium");
|
||||
|
||||
startSignalHandlerThread();
|
||||
|
||||
/* Reset SIGCHLD to its default. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue