FreeBSD/src d5fce87 (r348054) — lib/libc/gen getvfsbyname.c
getvfsbyname: prefer sizeof to strlen even for constants Clang is smart enough to evaluate strlen() of a constant at compile-time. However, that won't work in the future if we compile libc with -ffreestanding. Reported by: kib Dissenting: ngie, cem Sponsored by: The FreeBSD Foundation
Delta | File | |
---|---|---|
+4 | -3 | lib/libc/gen/getvfsbyname.c |
+4 | -3 | 1 files |