* lib/inet_pton.c (inet_pton6): Use unsigned char instead of u_char.
* lib/inet_ntop.c: Doc fix.
+2024-05-06 Simon Josefsson <simon@josefsson.org>
+
+ inet-ntop, inet-pton: Avoid obsolete u_char type.
+ * lib/inet_pton.c (inet_pton6): Use unsigned char instead of u_char.
+ * lib/inet_ntop.c: Doc fix.
+
2024-05-05 Bruno Haible <bruno@clisp.org>
gnulib-tool.py: Regenerate aclocal.m4 before using 'autoconf -t ...'.
* 'dst' (as a const)
* notes:
* (1) uses no statics
- * (2) takes a u_char* not an in_addr as input
+ * (2) takes a 'unsigned char *' not an in_addr as input
* author:
* Paul Vixie, 1996.
*/
}
if (tp + NS_INT16SZ > endp)
return (0);
- *tp++ = (u_char) (val >> 8) & 0xff;
- *tp++ = (u_char) val & 0xff;
+ *tp++ = (unsigned char) (val >> 8) & 0xff;
+ *tp++ = (unsigned char) val & 0xff;
saw_xdigit = 0;
val = 0;
continue;
{
if (tp + NS_INT16SZ > endp)
return (0);
- *tp++ = (u_char) (val >> 8) & 0xff;
- *tp++ = (u_char) val & 0xff;
+ *tp++ = (unsigned char) (val >> 8) & 0xff;
+ *tp++ = (unsigned char) val & 0xff;
}
if (colonp != NULL)
{