diff options
author | Alfred E. Heggestad <aeh@db.org> | 2016-08-07 13:26:52 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2016-08-07 13:26:52 +0200 |
commit | a4798e3cdb0b3758c7f11f289c28663e65da6d6c (patch) | |
tree | e7bfdd33ea8d701cde3f603511d841199a6548ab /modules/zrtp | |
parent | d37323d2abac52ce4d6fc8e421422db0c6bba58e (diff) |
cmd: make it fully re-entrant
Diffstat (limited to 'modules/zrtp')
-rw-r--r-- | modules/zrtp/zrtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/zrtp/zrtp.c b/modules/zrtp/zrtp.c index 9688545..20dfb84 100644 --- a/modules/zrtp/zrtp.c +++ b/modules/zrtp/zrtp.c @@ -385,13 +385,13 @@ static int module_init(void) debug(" zid: %w\n", zrtp_config.zid, sizeof(zrtp_config.zid)); - return cmd_register(cmdv, ARRAY_SIZE(cmdv)); + return cmd_register(baresip_commands(), cmdv, ARRAY_SIZE(cmdv)); } static int module_close(void) { - cmd_unregister(cmdv); + cmd_unregister(baresip_commands(), cmdv); menc_unregister(&menc_zrtp); if (zrtp_global) { |