summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2006-12-15 23:38:18 +0000
committererdgeist <>2006-12-15 23:38:18 +0000
commited0edcaae8ac9885601defdb3d13d0bd88472456 (patch)
treeb4a836eb3b2c439e0da8395156d0b20f244d3fca
parentb9efc8e22ba6f9457da9ee68040470c79891852c (diff)
Fix port again ;) Include headers in Makefile dependencies
-rw-r--r--Makefile3
-rw-r--r--trackerlogic.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 05e8dca..bff7daf 100644
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,10 @@ CC?=gcc
2CFLAGS+=-I../libowfat -Wall -pipe -O2 2CFLAGS+=-I../libowfat -Wall -pipe -O2
3LDFLAGS+=-L../libowfat/ -lowfat -s -lm 3LDFLAGS+=-L../libowfat/ -lowfat -s -lm
4 4
5HEADERS=trackerlogic.h scan_urlencoded_query.h
5SOURCES=opentracker.c trackerlogic.c scan_urlencoded_query.c 6SOURCES=opentracker.c trackerlogic.c scan_urlencoded_query.c
6 7
7opentracker: $(SOURCES) 8opentracker: $(SOURCES) $(HEADERS)
8 $(CC) $(SOURCES) -o opentracker $(CFLAGS) $(LDFLAGS) 9 $(CC) $(SOURCES) -o opentracker $(CFLAGS) $(LDFLAGS)
9 10
10clean: 11clean:
diff --git a/trackerlogic.h b/trackerlogic.h
index d2948db..a5dce7c 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -46,7 +46,7 @@ static const ot_byte PEER_FLAG_COMPLETED = 0x40;
46static const ot_byte PEER_FLAG_STOPPED = 0x20; 46static const ot_byte PEER_FLAG_STOPPED = 0x20;
47 47
48#define OT_SETIP( peer, ip ) MEMMOVE((peer),(ip),4); 48#define OT_SETIP( peer, ip ) MEMMOVE((peer),(ip),4);
49#define OT_SETPORT( peer, port ) MEMMOVE(((ot_byte*)peer)+6,(port),2); 49#define OT_SETPORT( peer, port ) MEMMOVE(((ot_byte*)peer)+4,(port),2);
50#define OT_FLAG(peer) (((ot_byte*)(peer))[6]) 50#define OT_FLAG(peer) (((ot_byte*)(peer))[6])
51 51
52typedef struct { 52typedef struct {