diff options
| author | Colin Davidson <colrdavidson@gmail.com> | 2023-03-01 08:27:07 -0800 |
|---|---|---|
| committer | Colin Davidson <colrdavidson@gmail.com> | 2023-03-01 08:27:07 -0800 |
| commit | 2ca30e3acd413bdcc9dbe055b2b70084f08a4ba7 (patch) | |
| tree | dc51e7ca1832fbba1fa7695da8f74ac13e9a1f7a /core/net/interface.odin | |
| parent | caf9716bf143e24f594e081b7e8ec19a3319dee7 (diff) | |
more test cleanup
Diffstat (limited to 'core/net/interface.odin')
| -rw-r--r-- | core/net/interface.odin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/net/interface.odin b/core/net/interface.odin index 354cba53f..5e6d09830 100644 --- a/core/net/interface.odin +++ b/core/net/interface.odin @@ -56,13 +56,13 @@ physical_address_to_string :: proc(phy_addr: []u8, allocator := context.allocato for b, i in phy_addr { if i > 0 { - strings.write_rune_builder(&buf, ':') + strings.write_rune(&buf, ':') } hi := rune(MAC_HEX[b >> 4]) lo := rune(MAC_HEX[b & 15]) - strings.write_rune_builder(&buf, hi) - strings.write_rune_builder(&buf, lo) + strings.write_rune(&buf, hi) + strings.write_rune(&buf, lo) } return strings.to_string(buf) -}
\ No newline at end of file +} |