diff options
author | pdw <> | 2003-10-14 22:33:45 +0000 |
---|---|---|
committer | pdw <> | 2003-10-14 22:33:45 +0000 |
commit | 3824538a293966a04eeec220110cc6e84f133312 (patch) | |
tree | f4dfdb7cc39f6248c3e8f263b38640a6e7d4ce99 /addrs_ioctl.c | |
parent | b7eb237e15d585343b83af290998b83d6cfbae57 (diff) | |
download | iftop-3824538a293966a04eeec220110cc6e84f133312.zip |
Cosmetic changes.
Diffstat (limited to 'addrs_ioctl.c')
-rw-r--r-- | addrs_ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addrs_ioctl.c b/addrs_ioctl.c index d60592a..ad7c631 100644 --- a/addrs_ioctl.c +++ b/addrs_ioctl.c @@ -50,7 +50,7 @@ get_addrs_ioctl(char *interface, char if_hw_addr[], struct in_addr *if_ip_addr) return -1; } - fprintf(stderr,"if: %s\n", interface); + fprintf(stderr,"interface: %s\n", interface); memset(if_hw_addr, 0, 6); strncpy(ifr.ifr_name, interface, IFNAMSIZ); @@ -72,7 +72,7 @@ get_addrs_ioctl(char *interface, char if_hw_addr[], struct in_addr *if_ip_addr) #ifdef SIOCGIFADDR (*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = AF_INET; if (ioctl(s, SIOCGIFADDR, &ifr) < 0) { - fprintf(stderr, "Error getting IP address for interface: %s\n", interface); + fprintf(stderr, "Unable to get IP address for interface: %s\n", interface); perror("ioctl(SIOCGIFADDR)"); } else { |