diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-01-05 04:40:25 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-01-05 04:40:25 +0000 |
commit | b476ac337200fe5ed62494feb1280652eae57025 (patch) | |
tree | 7f2acaae88e7ce2ef38c04df89afa16a40ffdb8f /interface.c | |
parent | f06b1846a2580c3b19a89f5f5e76b7d509afb3c9 (diff) | |
download | fetchmail-b476ac337200fe5ed62494feb1280652eae57025.tar.gz fetchmail-b476ac337200fe5ed62494feb1280652eae57025.tar.bz2 fetchmail-b476ac337200fe5ed62494feb1280652eae57025.zip |
Progress messages now go to stdout.
svn path=/trunk/; revision=2328
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/interface.c b/interface.c index 140822d0..22c1a35b 100644 --- a/interface.c +++ b/interface.c @@ -168,7 +168,7 @@ void interface_parse(char *buf, struct hostdata *hp) /* find and isolate just the IP address */ if (!(cp1 = strchr(buf, '/'))) - (void) error(PS_SYNTAX, 0, _("missing IP interface address")); + (void) report(stderr, PS_SYNTAX, 0, _("missing IP interface address")); *cp1++ = '\000'; /* find and isolate just the netmask */ @@ -180,9 +180,9 @@ void interface_parse(char *buf, struct hostdata *hp) /* convert IP address and netmask */ hp->interface_pair = (struct interface_pair_s *)xmalloc(sizeof(struct interface_pair_s)); if (!inet_aton(cp1, &hp->interface_pair->interface_address)) - (void) error(PS_SYNTAX, 0, _("invalid IP interface address")); + (void) report(stderr, PS_SYNTAX, 0, _("invalid IP interface address")); if (!inet_aton(cp2, &hp->interface_pair->interface_mask)) - (void) error(PS_SYNTAX, 0, _("invalid IP interface mask")); + (void) report(stderr, PS_SYNTAX, 0, _("invalid IP interface mask")); /* apply the mask now to the IP address (range) required */ hp->interface_pair->interface_address.s_addr &= hp->interface_pair->interface_mask.s_addr; @@ -218,7 +218,7 @@ void interface_note_activity(struct hostdata *hp) } #ifdef ACTIVITY_DEBUG - (void) progress(0, 0, _("activity on %s -noted- as %d"), + (void) report(stdout, 0, _("activity on %s -noted- as %d"), hp->monitor, hp->monitor_io); #endif } @@ -232,7 +232,7 @@ int interface_approve(struct hostdata *hp) if (hp->interface) { /* get interface info */ if (!get_ifinfo(hp->interface, &ifinfo)) { - (void) progress(0, 0, _("skipping poll of %s, %s down"), + (void) report(stdout, 0, _("skipping poll of %s, %s down"), hp->pollname, hp->interface); return(FALSE); } @@ -240,7 +240,7 @@ int interface_approve(struct hostdata *hp) if ((ifinfo.addr.s_addr & hp->interface_pair->interface_mask.s_addr) != hp->interface_pair->interface_address.s_addr) { - (void) progress(0, 0, + (void) report(stdout, 0, _("skipping poll of %s, %s IP address excluded"), hp->pollname, hp->interface); return(FALSE); @@ -252,14 +252,14 @@ int interface_approve(struct hostdata *hp) return(TRUE); #ifdef ACTIVITY_DEBUG - (void) progress(0, 0, _("activity on %s checked as %d"), + (void) report(stdout, 0, _("activity on %s checked as %d"), hp->monitor, hp->monitor_io); #endif /* if monitoring, check link for activity if it is up */ if (get_ifinfo(hp->monitor, &ifinfo) && hp->monitor_io == ifinfo.rx_packets + ifinfo.tx_packets) { - (void) progress(0, 0, _("skipping poll of %s, %s inactive"), + (void) report(stdout, 0, _("skipping poll of %s, %s inactive"), hp->pollname, hp->monitor); return(FALSE); } |