]> Savannah Git Hosting - gnulib.git/commitdiff
netdb: Simplify NI_MAXHOST and NI_MAXSERV definitions.
authorCollin Funk <collin.funk1@gmail.com>
Thu, 27 Jun 2024 21:38:49 +0000 (14:38 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Thu, 27 Jun 2024 21:38:49 +0000 (14:38 -0700)
* lib/netdb.in.h (NI_MAXHOST, NI_MAXSERV): Fix typos in comments.
Undefine and then redefine to the correct value.

ChangeLog
lib/netdb.in.h

index ef61d1c65202701b9727c3c145ae4cf75d98b9b1..f058aab66af7aef2ea74c213620457933903b44f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2024-06-27  Collin Funk  <collin.funk1@gmail.com>
 
+       netdb: Simplify NI_MAXHOST and NI_MAXSERV definitions.
+       * lib/netdb.in.h (NI_MAXHOST, NI_MAXSERV): Fix typos in comments.
+       Undefine and then redefine to the correct value.
+
        doc: Fix error in previous commits.
        * doc/posix-headers/netdb.texi (netdb.h): Move @end itemize to the end
        of the list.
index 6267b544b0260c8724de82d4795696097ee49e3e..35cf6c32fe18aae21498ac2cee225f42ef0e4608 100644 (file)
 /* Declarations for a platform that lacks <netdb.h>, or where it is
    incomplete.  */
 
-/* Maximumn length of a fully-qualified domain name.  */
-#ifndef NI_MAXHOST
-# define NI_MAXHOST 1025
-#elif NI_MAXHOST != 1025
-# undef NI_MAXHOST
-# define NI_MAXHOST 1025
-#endif
+/* Maximum length of a fully-qualified domain name.  */
+#undef NI_MAXHOST
+#define NI_MAXHOST 1025
 
-/* Maximumn length of a service.  */
-#ifndef NI_MAXSERV
-# define NI_MAXSERV 32
-#elif NI_MAXSERV != 32
-# undef NI_MAXSERV 32
-# define NI_MAXSERV 32
-#endif
+/* Maximum length of a service.  */
+#undef NI_MAXSERV
+#define NI_MAXSERV 32
 
 #if @GNULIB_GETADDRINFO@