Actions
Bug #1881
closed'name' field of 'struct option' has incorrect type.
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-12-12
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Description
The 'name' field should be a 'const char *', but is actually a 'char *'
This leads to compiler warnings, for example when compiling the openconnect VPN client:
main.c:102: warning: initialization discards qualifiers from pointer target type main.c:103: warning: initialization discards qualifiers from pointer target type main.c:104: warning: initialization discards qualifiers from pointer target type main.c:105: warning: initialization discards qualifiers from pointer target type
...etc.
Even the example code in the Solaris 11 'getopt_long' man page (which seems to be absent from OpenIndiana) fails to compile cleanly. Said man page also explicitly states that the field is of type 'const char *', which is false there too.
Updated by Ken Mays almost 11 years ago
- Status changed from New to Closed
Requires upstream fix/backport (not within scope of OI project). Closing ticket.
Actions