]> diplodocus.org Git - nmh/blobdiff - test/getcanon.c
Various IMAP protocol improvements
[nmh] / test / getcanon.c
index ada6802a51f9b946d20d3c573e3d4082fc96cf39..3e6d5870c72978845a40cb2173d1c6407a59505f 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * getcanon.c - Print the canonical name of a host, default to localhost.
+/* getcanon.c - Print the canonical name of a host, default to localhost.
  *
  * This code is Copyright (c) 2012, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -46,10 +45,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;
 }