summaryrefslogtreecommitdiff
path: root/src/cmd/netstack/ether.c
diff options
context:
space:
mode:
authordzwdz2023-08-30 00:03:43 +0200
committerdzwdz2023-08-30 00:03:43 +0200
commitcf7877737ff5032f8bad59d57b048f66c4813b5b (patch)
treeec9c66772331594c30b34062a2cb0f72719d6f6e /src/cmd/netstack/ether.c
parentf71af249cfb9ca9eb0832cc46437b2c5cb7bb217 (diff)
style: get rid of eprintf
Diffstat (limited to 'src/cmd/netstack/ether.c')
-rw-r--r--src/cmd/netstack/ether.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/netstack/ether.c b/src/cmd/netstack/ether.c
index 52abac2..7f3f3d4 100644
--- a/src/cmd/netstack/ether.c
+++ b/src/cmd/netstack/ether.c
@@ -1,4 +1,5 @@
#include <camellia/syscalls.h>
+#include <err.h>
#include "proto.h"
#include "util.h"
@@ -40,7 +41,7 @@ static const size_t fhoff = sizeof(size_t);
uint8_t *ether_start(size_t len, struct ethernet ether) {
if (len < 60 - Payload) len = 60 - Payload;
- if (!ether.dst) eprintf("NULL ether.dst!"); // TODO arp? i guess?
+ if (!ether.dst) warnx("null ether.dst");
if (!ether.src) ether.src = &state.mac;
uint8_t *buf = malloc(fhoff + Payload + len);