projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patch from Julien danjou: fix a couple of compilation warnings.
[apps/madmutt.git]
/
crypt-mod.c
diff --git
a/crypt-mod.c
b/crypt-mod.c
index
9200ef9
..
9a43556
100644
(file)
--- a/
crypt-mod.c
+++ b/
crypt-mod.c
@@
-11,8
+11,9
@@
# include "config.h"
#endif
# include "config.h"
#endif
+#include <lib-lib/mem.h>
+
#include "crypt-mod.h"
#include "crypt-mod.h"
-#include "lib/mem.h"
/* A type an a variable to keep track of registered crypto modules. */
typedef struct crypt_module *crypt_module_t;
/* A type an a variable to keep track of registered crypto modules. */
typedef struct crypt_module *crypt_module_t;
@@
-27,7
+28,7
@@
static crypt_module_t modules;
/* Register a new crypto module. */
void crypto_module_register (crypt_module_specs_t specs)
{
/* Register a new crypto module. */
void crypto_module_register (crypt_module_specs_t specs)
{
- crypt_module_t module_new =
mem_malloc (sizeof (*module_new)
);
+ crypt_module_t module_new =
p_new(struct crypt_module, 1
);
module_new->specs = specs;
module_new->next = modules;
module_new->specs = specs;
module_new->next = modules;