]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Merge branch 'master' of https://github.com/traviscross/mtr into asn-open-always... 166/head
authormeingtsla <meingtsla@users.noreply.github.com>
Sun, 9 Jul 2017 15:33:33 +0000 (08:33 -0700)
committermeingtsla <meingtsla@users.noreply.github.com>
Sun, 9 Jul 2017 15:33:33 +0000 (08:33 -0700)
1  2 
ui/asn.c

diff --cc ui/asn.c
index c39a78e237176e316fe206aae5662489920f5de2,04c8e3a6eae8f584a4eeb9a7275c23774485705c..4d544b065a7d9233fc7f93643740beaa4d7651a0
--- 1/asn.c
+++ b/ui/asn.c
@@@ -277,14 -312,20 +312,18 @@@ int is_printii
      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;