summaryrefslogtreecommitdiff
path: root/apps/netutils/smtp/smtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/netutils/smtp/smtp.c')
-rw-r--r--apps/netutils/smtp/smtp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/netutils/smtp/smtp.c b/apps/netutils/smtp/smtp.c
index 095a1c495..f33183ff6 100644
--- a/apps/netutils/smtp/smtp.c
+++ b/apps/netutils/smtp/smtp.c
@@ -2,7 +2,7 @@
* apps/netutitls/smtp/smtp.c
* smtp SMTP E-mail sender
*
- * Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2009, 2011, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Heavily leveraged from uIP 1.0 which also has a BSD-like license:
@@ -63,7 +63,7 @@
#include <apps/netutils/smtp.h>
/****************************************************************************
- * Definitions
+ * Pre-processor Definitions
****************************************************************************/
#define SMTP_INPUT_BUFFER_SIZE 512
@@ -89,7 +89,7 @@ struct smtp_state
uint8_t state;
bool connected;
sem_t sem;
- net_ipaddr_t smtpserver;
+ in_addr_t smtpserver;
const char *localhostname;
const char *to;
const char *cc;
@@ -286,7 +286,7 @@ static inline int smtp_send_message(int sockfd, struct smtp_state *psmtp)
*/
void smtp_configure(FAR void *handle, FAR const char *lhostname,
- FAR const net_ipaddr_t *paddr)
+ FAR const in_addr_t *paddr)
{
FAR struct smtp_state *psmtp = (FAR struct smtp_state *)handle;
psmtp->localhostname = lhostname;
@@ -364,6 +364,7 @@ void *smtp_open(void)
memset(psmtp, 0, sizeof(struct smtp_state));
(void)sem_init(&psmtp->sem, 0, 0);
}
+
return (void*)psmtp;
}