From: Johannes Schlüter Date: Tue, 19 Aug 2008 10:42:00 +0000 (+0000) Subject: constify strings X-Git-Tag: BEFORE_HEAD_NS_CHANGE~649 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71c14293fcbf4a74960074d3366866abc41db8de;p=php constify strings --- diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c index 0479095642..0a4c718011 100644 --- a/ext/mysqlnd/mysqlnd.c +++ b/ext/mysqlnd/mysqlnd.c @@ -58,9 +58,9 @@ extern MYSQLND_CHARSET *mysqlnd_charsets; -const char * mysqlnd_old_passwd = "mysqlnd cannot connect to MySQL 4.1+ using old authentication"; -const char * mysqlnd_server_gone = "MySQL server has gone away"; -const char * mysqlnd_out_of_sync = "Commands out of sync; you can't run this command now"; +const char * const mysqlnd_old_passwd = "mysqlnd cannot connect to MySQL 4.1+ using old authentication"; +const char * const mysqlnd_server_gone = "MySQL server has gone away"; +const char * const mysqlnd_out_of_sync = "Commands out of sync; you can't run this command now"; MYSQLND_STATS *mysqlnd_global_stats = NULL; static zend_bool mysqlnd_library_initted = FALSE; diff --git a/ext/mysqlnd/mysqlnd_priv.h b/ext/mysqlnd/mysqlnd_priv.h index 229dd903b7..0a666cd314 100644 --- a/ext/mysqlnd/mysqlnd_priv.h +++ b/ext/mysqlnd/mysqlnd_priv.h @@ -163,8 +163,9 @@ struct st_mysqlnd_perm_bind { extern struct st_mysqlnd_perm_bind mysqlnd_ps_fetch_functions[MYSQL_TYPE_LAST + 1]; -extern const char * mysqlnd_out_of_sync; -extern const char * mysqlnd_server_gone; +extern const char * const mysqlnd_old_passwd; +extern const char * const mysqlnd_out_of_sync; +extern const char * const mysqlnd_server_gone; enum_func_status mysqlnd_handle_local_infile(MYSQLND *conn, const char *filename, zend_bool *is_warning TSRMLS_DC);