~ubuntu-branches/ubuntu/saucy/ncbi-tools6/saucy-proposed

« back to all changes in this revision

Viewing changes to connect/ncbi_memory_connector.c

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2009-08-11 22:03:47 UTC
  • mfrom: (1.4.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20090811220347-g4b6lzdvphvvbpiu
* New upstream release.
* debian/libncbi6.symbols: update accordingly.
* debian/control: clean up obsolete or redundant relationship declarations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  $Id: ncbi_memory_connector.c,v 6.11 2008/05/25 01:25:38 kazimird Exp $
 
1
/* $Id: ncbi_memory_connector.c,v 6.12 2009/06/23 16:04:40 kazimird Exp $
2
2
 * ===========================================================================
3
3
 *
4
4
 *                            PUBLIC DOMAIN NOTICE
161
161
 EIO_Event       event,
162
162
 const STimeout* timeout)
163
163
{
164
 
    return eIO_Success;
 
164
    SMemoryConnector* xxx = (SMemoryConnector*) connector->handle;
 
165
    return event == eIO_Read  &&  !BUF_Size(xxx->buf)
 
166
        ? eIO_Closed : eIO_Success;
165
167
}
166
168
 
167
169
 
170
172
 EIO_Event dir)
171
173
{
172
174
    SMemoryConnector* xxx = (SMemoryConnector*) connector->handle;
173
 
 
174
175
    switch (dir) {
175
176
    case eIO_Read:
176
177
        return xxx->r_status;