From 8928a8db86c5502243e619a7db757a324f859fd2 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Tue, 12 Jun 2012 11:01:36 +0000 Subject: [PATCH] Fixed argument order for compile --- Makefile | 2 +- internal.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 35516fe..f2e67a9 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ libpduuid.a: $(OBJ) ranlib $@ t/%.t: t/%.o t/ctap.o - $(CC) $(CFLAGS) -lpduuid -Wall -I. -o $@ $+ + $(CC) $(CFLAGS) -Wall -I. -o $@ $+ -lpduuid test: t/uuidgen.t libpduuid.a prove t/*.t diff --git a/internal.c b/internal.c index 0ad2b81..ef0115b 100644 --- a/internal.c +++ b/internal.c @@ -186,7 +186,6 @@ static uint64_t current_node(struct pd_uuid_state *st) { continue; } if (ioctl(s, SIOCGIFHWADDR, req) == 0) { - int j; data = (unsigned char *)req->ifr_hwaddr.sa_data; node = data[0]; node = node << 8; node += data[1]; -- 2.40.0