Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Aug 2015 07:51:10 +0200
From:      Ed Schouten <ed@nuxi.nl>
To:        d@delphij.net
Cc:        Xin LI <delphij@freebsd.org>, src-committers <src-committers@freebsd.org>,  svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r286601 - head/usr.bin/patch
Message-ID:  <CABh_MKkfXa6mEc%2B6wPpw5b2W=RwC%2BiNVNb7k85LPvLCS_kRgrA@mail.gmail.com>
In-Reply-To: <55C931CE.3030806@delphij.net>
References:  <201508102131.t7ALVo5J050735@repo.freebsd.org> <CABh_MKk5uOupQx9farP3_5D1J0f-5fAt0EXqnhautx0TNm9AaA@mail.gmail.com> <55C931CE.3030806@delphij.net>

next in thread | previous in thread | raw e-mail | index | archive | help
2015-08-11 1:20 GMT+02:00 Xin Li <delphij@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@nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABh_MKkfXa6mEc%2B6wPpw5b2W=RwC%2BiNVNb7k85LPvLCS_kRgrA>