diff options
author | erdgeist <> | 2006-12-08 19:20:51 +0000 |
---|---|---|
committer | erdgeist <> | 2006-12-08 19:20:51 +0000 |
commit | 2adf4fb28af99dd72c6b2fc816bcc11e5dde1ffc (patch) | |
tree | 76b4283abe57c76b0efc7c48355f787ee6781b7b /trackerlogic.c | |
parent | 88679832f066d35d3b1fadba0ef13bf42a54cd15 (diff) |
Our scanner routine for the URI query string
Diffstat (limited to 'trackerlogic.c')
-rw-r--r-- | trackerlogic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index 735041e..6274c41 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -162,7 +162,7 @@ void return_peers_for_torrent( ot_torrent torrent, unsigned long amount, char *r | |||
162 | 162 | ||
163 | // Compacts a torrents peer list | 163 | // Compacts a torrents peer list |
164 | // * torrents older than OT_TIMEOUT are being kicked | 164 | // * torrents older than OT_TIMEOUT are being kicked |
165 | // * is rather expansive | 165 | // * is rather expensive |
166 | // * if this fails, torrent file is invalid, should add flag | 166 | // * if this fails, torrent file is invalid, should add flag |
167 | // | 167 | // |
168 | void heal_torrent( ot_torrent torrent ) { | 168 | void heal_torrent( ot_torrent torrent ) { |
@@ -269,7 +269,7 @@ int init_logic( char *directory ) { | |||
269 | 269 | ||
270 | // Scan directory for filenames in the form [0-9A-F]{20} | 270 | // Scan directory for filenames in the form [0-9A-F]{20} |
271 | // * I know this looks ugly, but I've seen A-F to match umlauts as well in strange locales | 271 | // * I know this looks ugly, but I've seen A-F to match umlauts as well in strange locales |
272 | // * lower case for .. better being safe than sorry, this is not expansive here :) | 272 | // * lower case for .. better being safe than sorry, this is not expensive here :) |
273 | if( !glob( | 273 | if( !glob( |
274 | "[0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef]" | 274 | "[0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef]" |
275 | "[0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef]" | 275 | "[0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef]" |