freebsd-src/lib/libc
John Baldwin aa358ce3ca inet_net_test: Compare pointers against nullptr
GCC does not like passing NULL (__null) to std::ostringstream::operator<<
inside of ATF_REQUIRE_EQ:

lib/libc/tests/net/inet_net_test.cc: In member function 'virtual void {anonymous}::atfu_tc_inet_net_ntop_invalid::body() const':
lib/libc/tests/net/inet_net_test.cc:306:9: error: passing NULL to non-pointer argument 1 of 'std::__1::basic_ostream<_CharT, _Traits>& std::__1::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::__1::char_traits<char>]' [-Werror=conversion-null]
  306 |         ATF_REQUIRE_EQ(ret, NULL);
      |         ^~~~~~~~~~~~~~
In file included from /usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/sstream:317,
                 from /usr/obj/.../amd64.amd64/tmp/usr/include/atf-c++/macros.hpp:29,
                 from /usr/obj/.../amd64.amd64/tmp/usr/include/atf-c++.hpp:29,
                 from lib/libc/tests/net/inet_net_test.cc:33:
/usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/__ostream/basic_ostream.h:338:81: note:   declared here
  338 | basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>::operator<<(long __n) {
      |                                                                            ~~~~~^~~
...

Fixes:		8f4a0d2f7b ("libc: Import OpenBSD's inet_net_{ntop,pton}")
2025-10-20 14:31:41 -04:00
..
aarch64 libc/aarch64: fix ELF size of timingsafe_memcmp 2025-09-26 11:04:54 +02:00
amd64 libc/amd64: rewrite memrchr() scalar impl. to read the string from the back 2025-08-09 22:13:27 +02:00
arm libc, libthr: Ditch MD __pthread_distribute_static_tls helpers 2025-05-29 17:06:54 +01:00
capability cap_rights_is_empty: add MLINK 2024-12-02 15:35:40 -05:00
compat-43 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
csu csu: C standard requires errno on main() entry 2025-06-24 04:11:17 +03:00
db db/hash.c: Fix flag check in hash_seq 2025-08-01 11:33:00 +02:00
gdtoa libc: prevent incorrect %a/%La rounding at full precision 2025-09-13 21:09:26 -06:00
gen initgroups.3: Clarify that ENOMEM is a possible value for 'errno' 2025-10-09 16:12:24 +02:00
gmon Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
i386 libc: Fix a typo in a source code comment 2025-08-17 09:24:59 +02:00
iconv Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
include libc/resolv: get rid of MD5 2025-10-04 10:50:02 +02:00
inet libc: Import OpenBSD's inet_net_{ntop,pton} 2025-10-18 15:45:42 +01:00
isc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
locale libc: locale: fix EUC shift check 2025-04-20 13:29:45 -05:00
nameser Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
net libc: preserve errno in gai_strerror() 2025-08-20 00:22:40 +03:00
nls libc: Move NLS catalogues to the locales packages 2025-10-05 06:12:54 +01:00
posix1e manuals: Fix "missing end of block" errors 2024-10-07 15:40:58 -03:00
powerpc libc, libthr: Ditch MD __pthread_distribute_static_tls helpers 2025-05-29 17:06:54 +01:00
powerpc64 libc/powerpc64: Fix swapcontext(3) 2025-07-13 14:00:56 -04:00
powerpcspe Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
quad Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
regex libregex: fix our mapping for \w 2025-08-08 13:27:26 -05:00
resolv libc/resolv: get rid of MD5 2025-10-04 10:50:02 +02:00
riscv libc, libthr: Ditch MD __pthread_distribute_static_tls helpers 2025-05-29 17:06:54 +01:00
rpc rpc_generic.c: Fix a rpcbind core dump when rpcinfo is done 2025-09-28 07:57:34 -07:00
secure libmd, kern, stand: consolidate md5 implementations (NFC) 2024-09-29 22:34:18 -05:00
softfloat libc/softfloat: we don't export _fp[gs]et* symbols 2024-03-13 20:35:41 +00:00
stdio stdio: Fix bug in integer-parsing FSM 2025-08-09 00:46:03 +02:00
stdlib realpath: Belatedly document POSIX conformance 2025-10-13 13:53:52 +02:00
stdtime libc: Add "Z" as TZ designator for strptime. 2025-10-15 18:24:07 -04:00
string memchr.3: Operates on objects, not strings 2025-07-25 09:48:42 -04:00
sys libc: stop trying to create __<syscall> symbols 2025-08-06 12:31:24 +01:00
tests inet_net_test: Compare pointers against nullptr 2025-10-20 14:31:41 -04:00
uuid Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
x86/gen Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
xdr libc/xdr: remove bogus lseek(2) for xdr streams 2025-01-06 08:22:14 -08:00
yp Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libc.ldscript Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
libc_nossp.ldscript Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
Makefile libc/resolv: get rid of MD5 2025-10-04 10:50:02 +02:00
Makefile.depend Update Makefile.depend files 2024-10-14 10:26:17 -07:00
Makefile.depend.options Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Versions.def lib/libc: add FBSD-1.9 to Versions.def 2025-10-03 19:46:22 +02:00