Sophie

Sophie

distrib > Fedora > 13 > x86_64 > media > os-src > by-pkgid > 4227c6dcb851a369e09525dc5d2e7973 > files > 4

mtr-0.75-6.fc13.src.rpm

diff -up mtr-0.75/mtr.c.rh516603 mtr-0.75/mtr.c
--- mtr-0.75/mtr.c.rh516603	2009-12-07 14:27:27.281726685 +0100
+++ mtr-0.75/mtr.c	2009-12-07 14:28:32.574226121 +0100
@@ -402,7 +402,7 @@ int main(int argc, char **argv) 
   hints.ai_socktype = SOCK_DGRAM;
   error = getaddrinfo( Hostname, NULL, &hints, &res );
   if ( error ) {
-    perror( gai_strerror(error) );
+    fprintf(stderr, "%s\n", gai_strerror(error));
     exit( EXIT_FAILURE );
   }
   /* Convert the first addrinfo into a hostent. */