~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/net_serv.c

  • Committer: Brian Aker
  • Date: 2008-07-16 01:30:24 UTC
  • Revision ID: brian@tangent.org-20080716013024-nmnogwdpa459jrch
First pass of cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
225
225
    if (ready == -1)
226
226
    {
227
227
      /* Read unblocking to clear net */
228
 
      my_bool old_mode;
 
228
      bool old_mode;
229
229
      if (!vio_blocking(net->vio, false, &old_mode))
230
230
      {
231
231
        while ((long) (count= vio_read(net->vio, net->buff,
517
517
      {
518
518
        if (!thr_alarm(&alarmed, net->write_timeout, &alarm_buff))
519
519
        {                                       /* Always true for client */
520
 
          my_bool old_mode;
 
520
          bool old_mode;
521
521
          while (vio_blocking(net->vio, true, &old_mode) < 0)
522
522
          {
523
523
            if (vio_should_retry(net->vio) && retry_count++ < net->retry_count)
564
564
    my_free((char*) packet,MYF(0));
565
565
  if (thr_alarm_in_use(&alarmed))
566
566
  {
567
 
    my_bool old_mode;
 
567
    bool old_mode;
568
568
    thr_end_alarm(&alarmed);
569
569
    vio_blocking(net->vio, net_blocking, &old_mode);
570
570
  }
696
696
end:
697
697
  if (thr_alarm_in_use(&alarmed))
698
698
  {
699
 
    my_bool old_mode;
 
699
    bool old_mode;
700
700
    thr_end_alarm(&alarmed);
701
701
    vio_blocking(net->vio, net_blocking, &old_mode);
702
702
  }