~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/net_serv.c

  • Committer: Brian Aker
  • Date: 2008-08-09 04:36:27 UTC
  • Revision ID: brian@tangent.org-20080809043627-zory1tydbjboleok
Cleanup of my_bool from extra and libdrizzle

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
 
197
197
bool net_flush(NET *net)
198
198
{
199
 
  my_bool error= 0;
 
199
  bool error= 0;
200
200
  if (net->buff != net->write_pos)
201
201
  {
202
202
    error=test(net_real_write(net, net->buff,
473
473
  {
474
474
    if ((long) (length= vio_write(net->vio,pos,(size_t) (end-pos))) <= 0)
475
475
    {
476
 
      my_bool interrupted= vio_should_retry(net->vio);
 
476
      bool interrupted= vio_should_retry(net->vio);
477
477
      /* 
478
478
        If we read 0, or we were interrupted this means that 
479
479
        we need to switch to blocking mode and wait until the timeout