Tweaking the license text a bit more.
[rsync/rsync.git] / lib / inet_pton.c
index e824868..4a0be88 100644 (file)
  */
 
 static int inet_pton4(const char *src, unsigned char *dst);
+#ifdef INET6
 static int inet_pton6(const char *src, unsigned char *dst);
+#endif
 
 /* int
- * isc_net_pton(af, src, dst)
+ * inet_pton(af, src, dst)
  *     convert from presentation format (which usually means ASCII printable)
  *     to network format (which is usually some kind of binary format).
  * return:
@@ -41,10 +43,9 @@ static int inet_pton6(const char *src, unsigned char *dst);
  *     Paul Vixie, 1996.
  */
 int
-isc_net_pton(af, src, dst)
-       int af;
-       const char *src;
-       void *dst;
+inet_pton(int af,
+         const char *src,
+         void *dst)
 {
        switch (af) {
        case AF_INET: