From de201c9a3bb12f71825a392cfd5fcfc9f9764b29 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 4 May 2020 10:39:07 -0400 Subject: [PATCH] Add clean to makefile Additionally correct a small mistake in copernicus.c --- confluent_deploy/utils/Makefile | 3 +++ confluent_deploy/utils/copernicus.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/confluent_deploy/utils/Makefile b/confluent_deploy/utils/Makefile index 3a2a4922..801fffd9 100644 --- a/confluent_deploy/utils/Makefile +++ b/confluent_deploy/utils/Makefile @@ -11,3 +11,6 @@ clortho: clortho.c $(TARGETS): % : %.c $(CC) $(CFLAGS) -o $@ $^ strip -s $@ + +clean: + rm $(TARGETS) clortho diff --git a/confluent_deploy/utils/copernicus.c b/confluent_deploy/utils/copernicus.c index 28d741fe..a4c805a9 100644 --- a/confluent_deploy/utils/copernicus.c +++ b/confluent_deploy/utils/copernicus.c @@ -48,8 +48,7 @@ int add_macs(char* destination, int maxsize) { } else if (lla->sll_hatype == ARPHRD_ETHER) { snprintf(macaddr, 32, "/mac=%02x:%02x:%02x:%02x:%02x:%02x", lla->sll_addr[0], lla->sll_addr[1], lla->sll_addr[2], - lla->sll_addr[3], lla->sll_addr[4], lla->sll_addr[5], - lla->sll_addr[6] + lla->sll_addr[3], lla->sll_addr[4], lla->sll_addr[5] ); } else { continue;