Changeset b7fd2a0 in mainline for uspace/app/netecho
- Timestamp:
- 2018-01-13T03:10:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- Location:
- uspace/app/netecho
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/netecho/comm.c
r36f0738 rb7fd2a0 71 71 size_t pos; 72 72 size_t now; 73 int rc;73 errno_t rc; 74 74 75 75 size = udp_rmsg_size(rmsg); … … 109 109 } 110 110 111 int comm_open_listen(const char *port_s)111 errno_t comm_open_listen(const char *port_s) 112 112 { 113 113 inet_ep2_t epp; 114 int rc;114 errno_t rc; 115 115 116 116 char *endptr; … … 142 142 } 143 143 144 int comm_open_talkto(const char *hostport)144 errno_t comm_open_talkto(const char *hostport) 145 145 { 146 146 inet_ep2_t epp; 147 147 const char *errmsg; 148 int rc;148 errno_t rc; 149 149 150 150 inet_ep2_init(&epp); … … 182 182 } 183 183 184 int comm_send(void *data, size_t size)184 errno_t comm_send(void *data, size_t size) 185 185 { 186 int rc = udp_assoc_send_msg(assoc, &remote, data, size);186 errno_t rc = udp_assoc_send_msg(assoc, &remote, data, size); 187 187 if (rc != EOK) 188 188 return EIO; -
uspace/app/netecho/comm.h
r36f0738 rb7fd2a0 39 39 #include <stddef.h> 40 40 41 extern int comm_open_listen(const char *);42 extern int comm_open_talkto(const char *);41 extern errno_t comm_open_listen(const char *); 42 extern errno_t comm_open_talkto(const char *); 43 43 extern void comm_close(void); 44 extern int comm_send(void *, size_t);44 extern errno_t comm_send(void *, size_t); 45 45 46 46 #endif -
uspace/app/netecho/netecho.c
r36f0738 rb7fd2a0 75 75 char cbuf[STR_BOUNDS(1)]; 76 76 size_t offs; 77 int rc;77 errno_t rc; 78 78 79 79 offs = 0; … … 137 137 static void netecho_send_messages(char **msgs) 138 138 { 139 int rc;139 errno_t rc; 140 140 141 141 while (*msgs != NULL) { … … 154 154 char *port; 155 155 char **msgs; 156 int rc;156 errno_t rc; 157 157 158 158 if (argc < 2) {
Note:
See TracChangeset
for help on using the changeset viewer.