e1_input: minor API changes to adapt it to openbsc
While working on the openbsc over libosmo-abis port, I noticed
several API changes that we need to perform for better adaptation.
diff --git a/src/input/misdn.c b/src/input/misdn.c
index 3ccfc4d..cf8b5d9 100644
--- a/src/input/misdn.c
+++ b/src/input/misdn.c
@@ -109,8 +109,8 @@
}
if (alen != sizeof(l2addr)) {
- if (line->ops.error)
- line->ops.error(NULL, -EBADMSG);
+ if (line->ops->error)
+ line->ops->error(NULL, line, ts_nr, -EBADMSG);
return -EINVAL;
}
@@ -173,8 +173,8 @@
l2addr.channel, l2addr.sapi, l2addr.tei);
break;
default:
- if (line->ops.error)
- line->ops.error(NULL, -EBADMSG);
+ if (line->ops->error)
+ line->ops->error(NULL, line, ts_nr, -EBADMSG);
break;
}
return ret;