tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] pcictl: simplify its usage

On Thu, Jun 04, 2009 at 09:23:26AM +0200, Christoph Egger wrote:
 > argv is passed through to getopt(). getopt() expects argv
 > as char * const [] or implicitely converts argv into this.
 > I tried const char *[] but this results in a warning when argv
 > is passed to getopt().
 > So either we go the "char * const []" way or leave it as is.
 > All other variants of const'ification produce a warning.

What problem is this consting supposed to solve? A quick look at C99
suggests that it isn't legal.

David A. Holland

Home | Main Index | Thread Index | Old Index