sodium_init() doesn't take any options any more.

This commit is contained in:
Frank Denis
2013-04-21 17:32:04 -07:00
parent 8e7bb5d0ce
commit 47bc0aab79
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ A convenience header includes everything you need to use the library:
Before doing anything else with the library, call:
sodium_init(NULL);
sodium_init();
And if you need to release memory and other resources possibly
allocated by the library, call:
+1 -1
View File
@@ -4,7 +4,7 @@
typedef struct sodium_options sodium_options;
int sodium_init(const sodium_options *options);
int sodium_init(void);
int sodium_reinit(void);
void sodium_shutdown(void);
+1 -3
View File
@@ -2,10 +2,8 @@
#include "core.h"
int
sodium_init(const sodium_options *options)
sodium_init(void)
{
(void) options;
return 0;
}
+3 -1
View File
@@ -21,7 +21,9 @@ int main(void)
perror("fopen(" TEST_NAME_RES ")");
return 99;
}
sodium_init(NULL);
if (sodium_init() != 0) {
return 99;
}
xmain();
sodium_shutdown();
rewind(fp_res);