Commit 1bdbf87
src: reduce duplication in tcp_wrap Connect
This commit extracts identical code from Connect and Connect6 into a
separate function to avoid some code duplication.
PR-URL: #23753
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>1 parent a80452a commit 1bdbf87Copy full SHA for 1bdbf87
File tree
Expand file treeCollapse file tree
2 files changed
+23
-34
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
2 files changed
+23
-34
lines changedOpen diff view settings
Collapse file
+20-34Lines changed: 20 additions & 34 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
276 | 276 | |
277 | 277 | |
278 | 278 | |
279 | | - |
280 | | - |
281 | | - |
282 | | - |
283 | | - |
284 | | - |
285 | | - |
286 | | - |
287 | | - |
288 | 279 | |
289 | | - |
290 | | - |
291 | | - |
292 | 280 | |
| 281 | + |
| 282 | + |
| 283 | + |
| 284 | + |
| 285 | + |
293 | 286 | |
294 | | - |
295 | | - |
296 | | - |
297 | | - |
298 | | - |
299 | | - |
300 | | - |
301 | | - |
302 | | - |
303 | | - |
304 | | - |
305 | | - |
306 | | - |
307 | | - |
308 | 287 | |
309 | | - |
| 288 | + |
| 289 | + |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
310 | 297 | |
311 | 298 | |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
312 | 303 | |
313 | | - |
314 | 304 | |
315 | 305 | |
316 | 306 | |
317 | 307 | |
318 | | - |
319 | 308 | |
320 | 309 | |
321 | 310 | |
322 | | - |
323 | 311 | |
324 | 312 | |
325 | 313 | |
326 | | - |
327 | | - |
328 | 314 | |
329 | | - |
330 | | - |
| 315 | + |
| 316 | + |
331 | 317 | |
332 | 318 | |
333 | 319 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
75 | 75 | |
76 | 76 | |
77 | 77 | |
| 78 | + |
| 79 | + |
| 80 | + |
78 | 81 | |
79 | 82 | |
80 | 83 | |
|
0 commit comments