Make the pointers of a few static const arrays const, too, for safety.

This commit is contained in:
Dan Fandrich 2007-07-21 02:08:17 +00:00
parent 37dc0fa519
commit b465750041
2 changed files with 4 additions and 4 deletions

View file

@ -252,7 +252,7 @@ static void state(struct connectdata *conn, sshstate state)
{
#if defined(CURLDEBUG) && !defined(CURL_DISABLE_VERBOSE_STRINGS)
/* for debug purposes */
static const char *names[] = {
static const char * const names[] = {
"SSH_STOP",
"SSH_S_STARTUP",
"SSH_AUTHLIST",