Re: Fix -Wincompatible-pointer-types-discards-qualifiers

2021-01-07 Thread Adam Barth
Thanks so much! This is my first patch for OpenBSD, and I don't quite have the workflow debugged yet. Adam On Thu, Jan 7, 2021 at 11:29 PM Theo Buehler wrote: > On Thu, Jan 07, 2021 at 11:16:16PM +0000, Adam Barth wrote: > > Previously, this code was passing string constants to

Fix -Wincompatible-pointer-types-discards-qualifiers

2021-01-07 Thread Adam Barth
Previously, this code was passing string constants to functions that did not declare their parameters as const. After this patch, the functions now declare that they do not modify these arguments, making it safe to pass string constants. diff --git lib/libc/gen/fts.c lib/libc/gen/fts.c index