summaryrefslogtreecommitdiff
path: root/server-tools/instance-manager/protocol.cc
diff options
context:
space:
mode:
authorunknown <jani@a193-229-222-105.elisa-laajakaista.fi>2005-09-30 12:35:12 +0300
committerunknown <jani@a193-229-222-105.elisa-laajakaista.fi>2005-09-30 12:35:12 +0300
commitfea5dcaea1caada7fbd8dbd900336a960299a274 (patch)
tree6ac575eb6fd3c1a0c8411f881b5a2efaa06a6690 /server-tools/instance-manager/protocol.cc
parentab0d7e2ace7d8cb42835e8194da648ede1e03b14 (diff)
downloadmariadb-git-fea5dcaea1caada7fbd8dbd900336a960299a274.tar.gz
Small fixes.
include/my_sys.h: Initialised TYPE_NOT_SET to zero to make sure no enum is added before it. server-tools/instance-manager/protocol.cc: Changed int to const int.
Diffstat (limited to 'server-tools/instance-manager/protocol.cc')
-rw-r--r--server-tools/instance-manager/protocol.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/server-tools/instance-manager/protocol.cc b/server-tools/instance-manager/protocol.cc
index 71c225e82c3..e14449746fd 100644
--- a/server-tools/instance-manager/protocol.cc
+++ b/server-tools/instance-manager/protocol.cc
@@ -74,7 +74,7 @@ int net_send_error(struct st_net *net, uint sql_errno)
MYSQL_ERRMSG_SIZE]; // message
char *pos= buff;
- int ERROR_PACKET_CODE= 255;
+ const int ERROR_PACKET_CODE= 255;
*pos++= ERROR_PACKET_CODE;
int2store(pos, sql_errno);
pos+= 2;
@@ -95,7 +95,7 @@ int net_send_error_323(struct st_net *net, uint sql_errno)
MYSQL_ERRMSG_SIZE]; // message
char *pos= buff;
- int ERROR_PACKET_CODE= 255;
+ const int ERROR_PACKET_CODE= 255;
*pos++= ERROR_PACKET_CODE;
int2store(pos, sql_errno);
pos+= 2;