Commit 15400c2
Andrew Cady
Avoid code repetition
The client and server blocks were nearly identical. Now they share code.
Both client and server now call memset() on tox_printable_id.
The distinct client message "Generated Tox ID: %s\n" was not preserved;
both client and server will say "Using Tox ID: %s\n" which is more
accurate (Tox ID might be persistent with -C).1 parent ee6e937 commit 15400c2
1 file changed
+16
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1434 | 1434 | | |
1435 | 1435 | | |
1436 | 1436 | | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
1437 | 1443 | | |
1438 | 1444 | | |
1439 | 1445 | | |
| |||
1528 | 1534 | | |
1529 | 1535 | | |
1530 | 1536 | | |
1531 | | - | |
1532 | | - | |
1533 | | - | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
1538 | | - | |
1539 | | - | |
1540 | | - | |
1541 | | - | |
1542 | | - | |
1543 | | - | |
1544 | | - | |
1545 | | - | |
1546 | | - | |
1547 | | - | |
1548 | | - | |
1549 | | - | |
1550 | | - | |
1551 | | - | |
1552 | | - | |
1553 | 1537 | | |
1554 | 1538 | | |
1555 | 1539 | | |
| |||
1569 | 1553 | | |
1570 | 1554 | | |
1571 | 1555 | | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
1575 | 1566 | | |
1576 | 1567 | | |
1577 | 1568 | | |
| |||
0 commit comments