comparison netio.c @ 1459:06d52bcb8094

Pointer parameter could be declared as pointing to const
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Aug 2017 17:16:13 +0200
parents 89f8c5960527
children ad637c9e0f6f
comparison
equal deleted inserted replaced
1458:bdd3802c8ac6 1459:06d52bcb8094
195 } 195 }
196 iter = next_iter; 196 iter = next_iter;
197 } 197 }
198 } 198 }
199 199
200 void handle_connect_fds(fd_set *writefd) { 200 void handle_connect_fds(const fd_set *writefd) {
201 m_list_elem *iter; 201 m_list_elem *iter;
202 TRACE(("enter handle_connect_fds")) 202 TRACE(("enter handle_connect_fds"))
203 for (iter = ses.conn_pending.first; iter; iter = iter->next) { 203 for (iter = ses.conn_pending.first; iter; iter = iter->next) {
204 int val; 204 int val;
205 socklen_t vallen = sizeof(val); 205 socklen_t vallen = sizeof(val);
238 238
239 void connect_set_writequeue(struct dropbear_progress_connection *c, struct Queue *writequeue) { 239 void connect_set_writequeue(struct dropbear_progress_connection *c, struct Queue *writequeue) {
240 c->writequeue = writequeue; 240 c->writequeue = writequeue;
241 } 241 }
242 242
243 void packet_queue_to_iovec(struct Queue *queue, struct iovec *iov, unsigned int *iov_count) { 243 void packet_queue_to_iovec(const struct Queue *queue, struct iovec *iov, unsigned int *iov_count) {
244 struct Link *l; 244 struct Link *l;
245 unsigned int i; 245 unsigned int i;
246 int len; 246 int len;
247 buffer *writebuf; 247 buffer *writebuf;
248 248