summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
authorerdgeist <>2006-12-15 23:35:40 +0000
committererdgeist <>2006-12-15 23:35:40 +0000
commitb9efc8e22ba6f9457da9ee68040470c79891852c (patch)
tree52115fcce74074f88b5fb0d11473ade136cf13f7 /trackerlogic.h
parentfcf615779d269c34b121ff0fe30dd9ae45e07635 (diff)
fixed setport fuckup
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index 1bd7228..d2948db 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((peer),(port),2); 49#define OT_SETPORT( peer, port ) MEMMOVE(((ot_byte*)peer)+6,(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 {