Commit e7e37a24 authored by Ben Greear's avatar Ben Greear Committed by Daniel Stenberg
Browse files

fixed compiler warnings

parent 78b28401
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -43,7 +43,7 @@ typedef enum {
struct pop3_conn {
struct pop3_conn {
  struct pingpong pp;
  struct pingpong pp;
  char *mailbox;     /* what to RETR */
  char *mailbox;     /* what to RETR */
  int eob;        /* number of bytes of the EOB (End Of Body) that has been
  size_t eob;        /* number of bytes of the EOB (End Of Body) that has been
                        received thus far */
                        received thus far */
  pop3state state; /* always use pop3.c:state() to change state! */
  pop3state state; /* always use pop3.c:state() to change state! */
};
};
+3 −3
Original line number Original line Diff line number Diff line
@@ -1045,8 +1045,8 @@ CURLcode Curl_smtp_escape_eob(struct connectdata *conn, ssize_t nread)
   * the data and make sure it is sent as CRLF..CRLF instead, as
   * the data and make sure it is sent as CRLF..CRLF instead, as
   * otherwise it will wrongly be detected as end of data by the server.
   * otherwise it will wrongly be detected as end of data by the server.
   */
   */
  int i;
  ssize_t i;
  int si;
  ssize_t si;
  struct smtp_conn *smtpc = &conn->proto.smtpc;
  struct smtp_conn *smtpc = &conn->proto.smtpc;
  struct SessionHandle *data = conn->data;
  struct SessionHandle *data = conn->data;


@@ -1061,7 +1061,7 @@ CURLcode Curl_smtp_escape_eob(struct connectdata *conn, ssize_t nread)
  for(i = 0, si = 0; i < nread; i++, si++) {
  for(i = 0, si = 0; i < nread; i++, si++) {
    ssize_t left = nread - i;
    ssize_t left = nread - i;


    if(left>= (SMTP_EOB_LEN-smtpc->eob)) {
    if(left>= (ssize_t)(SMTP_EOB_LEN-smtpc->eob)) {
      if(!memcmp(SMTP_EOB+smtpc->eob, &data->req.upload_fromhere[i],
      if(!memcmp(SMTP_EOB+smtpc->eob, &data->req.upload_fromhere[i],
                 SMTP_EOB_LEN-smtpc->eob)) {
                 SMTP_EOB_LEN-smtpc->eob)) {
        /* It matched, copy the replacement data to the target buffer
        /* It matched, copy the replacement data to the target buffer
+2 −2
Original line number Original line Diff line number Diff line
@@ -47,7 +47,7 @@ typedef enum {
struct smtp_conn {
struct smtp_conn {
  struct pingpong pp;
  struct pingpong pp;
  char *domain;    /* what to send in the EHLO */
  char *domain;    /* what to send in the EHLO */
  int eob;         /* number of bytes of the EOB (End Of Body) that has been
  size_t eob;         /* number of bytes of the EOB (End Of Body) that has been
                         received thus far */
                         received thus far */
  smtpstate state; /* always use smtp.c:state() to change state! */
  smtpstate state; /* always use smtp.c:state() to change state! */
  struct curl_slist *rcpt;
  struct curl_slist *rcpt;