~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

« back to all changes in this revision

Viewing changes to vio/viosocket.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-04-16 20:07:10 UTC
  • mto: (1.3.9 vivid-proposed)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20150416200710-pcrsa022082zj46k
Tags: upstream-5.6.24
ImportĀ upstreamĀ versionĀ 5.6.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
   Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
 
2
   Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
3
3
 
4
4
   This program is free software; you can redistribute it and/or
5
5
   modify it under the terms of the GNU General Public License
735
735
int vio_io_wait(Vio *vio, enum enum_vio_io_event event, int timeout)
736
736
{
737
737
  int ret;
738
 
  short revents= 0;
 
738
  short revents __attribute__((unused)) = 0;
739
739
  struct pollfd pfd;
740
740
  my_socket sd= mysql_socket_getfd(vio->mysql_socket);
741
741
  MYSQL_SOCKET_WAIT_VARIABLES(locker, state) /* no ';' */