~ubuntu-branches/ubuntu/raring/curl/raring-updates

« back to all changes in this revision

Viewing changes to lib/pop3.c

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2011-11-13 21:07:32 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: package-import@ubuntu.com-20111113210732-bk5n25x2tu7aplur
Tags: upstream-7.22.0
ImportĀ upstreamĀ versionĀ 7.22.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "setup.h"
28
28
 
29
29
#ifndef CURL_DISABLE_POP3
30
 
#include <stdio.h>
31
 
#include <string.h>
32
 
#include <stdlib.h>
33
 
#include <stdarg.h>
34
 
#include <ctype.h>
35
30
 
36
31
#ifdef HAVE_UNISTD_H
37
32
#include <unistd.h>
285
280
  conn->handler = &Curl_handler_pop3s;
286
281
}
287
282
#else
288
 
#define pop3_to_pop3s(x)
 
283
#define pop3_to_pop3s(x) Curl_nop_stmt
289
284
#endif
290
285
 
291
286
/* for STARTTLS responses */
575
570
  struct pop3_conn *pop3c = &conn->proto.pop3c;
576
571
  CURLcode result = Curl_pp_multi_statemach(&pop3c->pp);
577
572
 
578
 
  *done = (bool)(pop3c->state == POP3_STOP);
 
573
  *done = (pop3c->state == POP3_STOP) ? TRUE : FALSE;
579
574
 
580
575
  return result;
581
576
}
792
787
    result = pop3_easy_statemach(conn);
793
788
    *dophase_done = TRUE; /* with the easy interface we are done here */
794
789
  }
795
 
  *connected = conn->bits.tcpconnect;
 
790
  *connected = conn->bits.tcpconnect[FIRSTSOCKET];
796
791
 
797
792
  if(*dophase_done)
798
793
    DEBUGF(infof(conn->data, "DO phase is complete\n"));