return ((ctl->ipinfo_no >= 0) && (ctl->ipinfo_no != ctl->ipinfo_max));
}
- extern void asn_open(struct mtr_ctl *ctl) {
+ void asn_open(
+ struct mtr_ctl *ctl)
+ {
- if (ctl->ipinfo_no >= 0) {
- DEB_syslog(LOG_INFO, "hcreate(%d)", IIHASH_HI);
- if (!(iihash = hcreate(IIHASH_HI)))
- error(0, errno, "ipinfo hash");
- }
+ DEB_syslog(LOG_INFO, "hcreate(%d)", IIHASH_HI);
+ if (!(iihash = hcreate(IIHASH_HI)))
+ error(0, errno, "ipinfo hash");
}
- extern void asn_close(struct mtr_ctl *ctl) {
+ void asn_close(
+ struct mtr_ctl *ctl)
+ {
- if ((ctl->ipinfo_no >= 0) && iihash) {
+ if (iihash) {
DEB_syslog(LOG_INFO, "hdestroy()");
hdestroy();
iihash = 0;