Include dependencies in the makefile
authorDale Weiler <weilercdale@gmail.com>
Wed, 14 Jan 2015 01:29:46 +0000 (20:29 -0500)
committerDale Weiler <weilercdale@gmail.com>
Wed, 14 Jan 2015 01:29:46 +0000 (20:29 -0500)
Makefile
util.c

index 268e2b4..855dd4b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,3 +32,5 @@ clean:
        rm -f *.d
        rm -f $(COBJS) $(CDEPS) $(CBIN)
        rm -f $(TOBJS) $(TDEPS) $(TBIN)
+
+-include *.d
diff --git a/util.c b/util.c
index 4adcb4a..c2ab21a 100644 (file)
--- a/util.c
+++ b/util.c
@@ -519,7 +519,7 @@ static const uint16_t util_crc16_table[8][256] = {{
 
 /* Non - Reflected */
 uint16_t util_crc16(uint16_t current, const char *GMQCC_RESTRICT k, size_t len) {
-    register uint16_t h = current;
+    uint16_t h = current;
 
     /* don't load twice */
     const uint8_t *GMQCC_RESTRICT data = (const uint8_t *GMQCC_RESTRICT)k;