Changes in uspace/app/nterm/conn.c [b7fd2a0:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nterm/conn.c
rb7fd2a0 r8d2dd7f2 69 69 static void conn_data_avail(tcp_conn_t *conn) 70 70 { 71 errno_t rc;71 int rc; 72 72 size_t nrecv; 73 73 … … 75 75 rc = tcp_conn_recv(conn, recv_buf, RECV_BUF_SIZE, &nrecv); 76 76 if (rc != EOK) { 77 printf("\n[Receive error : %s]\n", str_error_name(rc));77 printf("\n[Receive error %d]\n", rc); 78 78 break; 79 79 } … … 86 86 } 87 87 88 errno_t conn_open(const char *hostport)88 int conn_open(const char *hostport) 89 89 { 90 90 inet_ep2_t epp; 91 91 const char *errmsg; 92 errno_t rc;92 int rc; 93 93 94 94 inet_ep2_init(&epp); … … 126 126 } 127 127 128 errno_t conn_send(void *data, size_t size)128 int conn_send(void *data, size_t size) 129 129 { 130 errno_t rc = tcp_conn_send(conn, data, size);130 int rc = tcp_conn_send(conn, data, size); 131 131 if (rc != EOK) 132 132 return EIO;
Note:
See TracChangeset
for help on using the changeset viewer.