add missing const
If you want to declare a pointer which the address pointed to is constant, you should declare it as like `static const char *const var = "...";`. This commit supplies missing `const` and prevents some programming error in the future.
This commit is contained in:
@@ -451,7 +451,7 @@ doextlist(void)
|
||||
int n, pass;
|
||||
int menumode = 0, menushown[2], onelist = 0;
|
||||
boolean redisplay = TRUE, search = FALSE;
|
||||
static const char *headings[] = { "Extended commands",
|
||||
static const char *const headings[] = { "Extended commands",
|
||||
"Debugging Extended Commands" };
|
||||
|
||||
searchbuf[0] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user