diff options
| author | bernard.xiong <[email protected]> | 2009-09-06 11:04:38 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2009-09-06 11:04:38 +0000 |
| commit | b9290bcef45a9ebc088e1f20596b7e02c7ca47f6 (patch) | |
| tree | d3545a00a8b25782bf32c52f491df1188abdcfee /net/lwip/src/api/api_lib.c | |
| parent | 1ae9da2752f5ae98d029dce078c49f2a5364019c (diff) | |
update lwip to 1.3.1
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@37 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'net/lwip/src/api/api_lib.c')
| -rw-r--r-- | net/lwip/src/api/api_lib.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/net/lwip/src/api/api_lib.c b/net/lwip/src/api/api_lib.c index 22b65a315d..86df911ea3 100644 --- a/net/lwip/src/api/api_lib.c +++ b/net/lwip/src/api/api_lib.c @@ -120,19 +120,6 @@ netconn_delete(struct netconn *conn) } /** - * Get the type of a netconn (as enum netconn_type). - * - * @param conn the netconn of which to get the type - * @return the netconn_type of conn - */ -enum netconn_type -netconn_type(struct netconn *conn) -{ - LWIP_ERROR("netconn_type: invalid conn", (conn != NULL), return NETCONN_INVALID;); - return conn->type; -} - -/** * Get the local or remote IP address and port of a netconn. * For RAW netconns, this returns the protocol instead of a port! * @@ -439,7 +426,7 @@ netconn_send(struct netconn *conn, struct netbuf *buf) LWIP_ERROR("netconn_send: invalid conn", (conn != NULL), return ERR_ARG;); - LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_send: sending %d bytes\n", buf->p->tot_len)); + LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_send: sending %"U16_F" bytes\n", buf->p->tot_len)); msg.function = do_send; msg.msg.conn = conn; msg.msg.msg.b = buf; @@ -459,7 +446,7 @@ netconn_send(struct netconn *conn, struct netbuf *buf) * @return ERR_OK if data was sent, any other err_t on error */ err_t -netconn_write(struct netconn *conn, const void *dataptr, int size, u8_t apiflags) +netconn_write(struct netconn *conn, const void *dataptr, size_t size, u8_t apiflags) { struct api_msg msg; |
