svn commit: r286601 - head/usr.bin/patch
Ed Schouten
ed at nuxi.nl
Tue Aug 11 05:51:17 UTC 2015
2015-08-11 1:20 GMT+02:00 Xin Li <delphij at delphij.net>:
> Do you have a better solution for this? No, this is not ideal but I
> didn't find a better alternative (or maybe I have missed something obvious?)
>
> I think with the current POSIX definition of the interface, we have only
> two options: either strdup() or cast away const (I'd rather hide this
> kind of uglyness in the library), no?
Casting const away should be all right in this case.
--
Ed Schouten <ed at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717
More information about the svn-src-all
mailing list