Commit fea5dcae authored by unknown's avatar unknown
Browse files

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.
parent ab0d7e2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -280,7 +280,7 @@ enum loglevel {

enum cache_type
{
  TYPE_NOT_SET, READ_CACHE, WRITE_CACHE,
  TYPE_NOT_SET= 0, READ_CACHE, WRITE_CACHE,
  SEQ_READ_APPEND		/* sequential read or append */,
  READ_FIFO, READ_NET,WRITE_NET};

+2 −2
Original line number Diff line number Diff line
@@ -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;