Project

General

Profile

Actions

Feature #12271

closed

"name" member of "struct option" should be const

Added by Joshua M. Clulow over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

In getopt.h we define struct option, which has a char *name member. On other platforms (e.g., modern Linux distributions, Mac OS X), this is actually const char *name. We should make our definition const as well, for better compatibility.

Actions

Also available in: Atom PDF