]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Remove an unused variable
authorerdgeist <>
Fri, 19 Oct 2007 05:23:04 +0000 (05:23 +0000)
committererdgeist <>
Fri, 19 Oct 2007 05:23:04 +0000 (05:23 +0000)
trackerlogic.c

index 2cc1ca62f0fb091aab754734e98e7dd7e97d783e..765a84537782f591c6e7a912a0348bfffbaf605a 100644 (file)
@@ -304,7 +304,7 @@ size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply
 
 /* Release memory we allocated too much */
 static void fix_mmapallocation( void *buf, size_t old_alloc, size_t new_alloc ) {
-  int res, page_size = getpagesize();
+  int page_size = getpagesize();
   size_t old_pages = 1 + old_alloc / page_size;
   size_t new_pages = 1 + new_alloc / page_size;