]> pd.if.org Git - uuid/commitdiff
Fixed argument order for compile
authorNathan Wagner <nw@hydaspes.if.org>
Tue, 12 Jun 2012 11:01:36 +0000 (11:01 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Tue, 12 Jun 2012 11:01:36 +0000 (11:01 +0000)
Makefile
internal.c

index 35516fe8ba451c5ea79bca2fa86f36086c49d3de..f2e67a9fcae6eefcd4623f37fbfc37c52ff3b35f 100644 (file)
--- 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
index 0ad2b81fe611a237a4a63da078df08c67d52971e..ef0115b86db6e6e383d019d981ac1c88425077b3 100644 (file)
@@ -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];