Get rid of unused funcs in arp-request.c

This commit is contained in:
Juhani Krekelä 2019-07-06 18:13:47 +03:00
parent 7486c135a8
commit 829cd7fdfb
1 changed files with 0 additions and 15 deletions

View File

@ -17,21 +17,6 @@
#include <sys/types.h>
#include <unistd.h>
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();