From 829cd7fdfb081eaf25fd0747a91cc08534202c0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sat, 6 Jul 2019 18:13:47 +0300 Subject: [PATCH] Get rid of unused funcs in arp-request.c --- arp-request.c | 15 --------------- 1 file changed, 15 deletions(-) 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();