]> diplodocus.org Git - nmh/blobdiff - test/getcanon.c
whom.c: Don't store atoi(getenv("mhdist")) when value only tested.
[nmh] / test / getcanon.c
index ada6802..3e75f32 100644 (file)
@@ -46,10 +46,10 @@ main(int argc, char *argv[])
   hints.ai_family = AF_UNSPEC;
 
   if (getaddrinfo(hostname, NULL, &hints, &res)) {
-    printf("%s\n", hostname);
+    puts(hostname);
     return 1;
   }
-  printf("%s\n", res->ai_canonname);
+  puts(res->ai_canonname);
 
   return 0;
 }