[PATCH v23 02/15] windows: make getopt functions have const properties

fengchengwen fengchengwen at huawei.com
Wed Sep 18 09:04:52 CEST 2024


Acked-by: Chengwen Feng <fengchengwen at huawei.com>

On 2024/9/18 12:56, Stephen Hemminger wrote:
> Having different prototypes on different platforms can lead
> to lots of unnecessary workarounds.  Looks like the version of
> getopt used from windows was based on an older out of date
> version from FreeBSD.
> 
> This patch changes getopt, getopt_long, etc to have the same const
> attributes as Linux and FreeBSD. The changes are derived from
> the current FreeBSD version of getopt_long.
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> Acked-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
> Acked-by: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>
> Acked-by: Morten Brørup <mb at smartsharesystems.com>





More information about the dev mailing list