From 0a95d03da85a0d457b5323fff5159e21cbfe8d25 Mon Sep 17 00:00:00 2001
From: Lev Walkin <vlm@lionet.info>
Date: Wed, 22 Sep 2004 16:03:19 +0000
Subject: [PATCH] explicit module is not necessary

---
 libasn1fix/asn1fix_export.c | 6 ++----
 libasn1fix/asn1fix_export.h | 3 +--
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/libasn1fix/asn1fix_export.c b/libasn1fix/asn1fix_export.c
index 3a18ece0..d6866fda 100644
--- a/libasn1fix/asn1fix_export.c
+++ b/libasn1fix/asn1fix_export.c
@@ -43,15 +43,13 @@ asn1f_class_access_ex(asn1p_t *asn,
 }
 
 asn1p_expr_t *
-asn1f_find_terminal_type_ex(asn1p_t *asn,
-		asn1p_module_t *mod,
-		asn1p_expr_t *expr) {
+asn1f_find_terminal_type_ex(asn1p_t *asn, asn1p_expr_t *expr) {
 	arg_t arg;
 
 	memset(&arg, 0, sizeof(arg));
 
 	arg.asn = asn;
-	arg.mod = mod;
+	arg.mod = expr->module;
 	arg.expr = expr;
 	arg.eh = a1f_replace_me_with_proper_interface_arg.eh;
 	arg.debug = a1f_replace_me_with_proper_interface_arg.debug;
diff --git a/libasn1fix/asn1fix_export.h b/libasn1fix/asn1fix_export.h
index 8ebe4487..5879b93f 100644
--- a/libasn1fix/asn1fix_export.h
+++ b/libasn1fix/asn1fix_export.h
@@ -31,8 +31,7 @@ asn1p_expr_t *asn1f_class_access_ex(asn1p_t *asn, asn1p_module_t *mod,
 /*
  * Exportable version of asn1f_find_terminal_type().
  */
-asn1p_expr_t *asn1f_find_terminal_type_ex(asn1p_t *asn, asn1p_module_t *mod,
-	asn1p_expr_t *tc);
+asn1p_expr_t *asn1f_find_terminal_type_ex(asn1p_t *asn, asn1p_expr_t *tc);
 
 /*
  * Exportable version of asn1f_fix_dereference_values();
-- 
GitLab