]> granicus.if.org Git - php/commitdiff
constify strings
authorJohannes Schlüter <johannes@php.net>
Tue, 19 Aug 2008 10:42:00 +0000 (10:42 +0000)
committerJohannes Schlüter <johannes@php.net>
Tue, 19 Aug 2008 10:42:00 +0000 (10:42 +0000)
ext/mysqlnd/mysqlnd.c
ext/mysqlnd/mysqlnd_priv.h

index 0479095642d17cab1f142c30b66974d0f96e5abb..0a4c718011165e0cc1fdbf1ae04ead40a9c4dad5 100644 (file)
@@ -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;
index 229dd903b731a451a7490587445df0313e7f8efa..0a666cd3141ea995240098ed3ce95322067d4a04 100644 (file)
@@ -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);