diff --git a/arp-request.c b/arp-request.c index 5932d5d..89ccf9b 100644 --- a/arp-request.c +++ b/arp-request.c @@ -17,21 +17,6 @@ #include #include -char hexify(int nybble) { - assert(0 <= nybble && nybble <= 16); - return "0123456789abcdef"[nybble]; -} - -void format_mac(const unsigned char binary_address[6], char formatted[18]) { - for (size_t i = 0; i < 6; i++) { - unsigned char byte = binary_address[i]; - formatted[3*i] = hexify(byte >> 4); - formatted[3*i + 1] = hexify(byte & 0xf); - formatted[3*i + 2] = ':'; - } - formatted[17] = '\0'; -} - void drop_privileges(void) { uid_t uid = getuid(); gid_t gid = getgid();