automatic dependency tracking
diff --git a/libasn1compiler/asn1compiler.c b/libasn1compiler/asn1compiler.c
index 31a4227..e8e6739 100644
--- a/libasn1compiler/asn1compiler.c
+++ b/libasn1compiler/asn1compiler.c
@@ -12,6 +12,7 @@
int argc, char **argv) {
arg_t arg_s;
arg_t *arg = &arg_s;
+ asn1p_module_t *mod;
int ret;
/*
@@ -29,8 +30,8 @@
/*
* Compile each individual top level structure.
*/
- TQ_FOR(arg->mod, &(asn->modules), mod_next) {
- TQ_FOR(arg->expr, &(arg->mod->members), next) {
+ TQ_FOR(mod, &(asn->modules), mod_next) {
+ TQ_FOR(arg->expr, &(mod->members), next) {
compiler_streams_t *cs = NULL;
if(asn1c_attach_streams(arg->expr))