summaryrefslogtreecommitdiff
path: root/toxcore/list.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-05-22 17:12:46 -0400
committerirungentoo <irungentoo@gmail.com>2014-05-22 17:12:46 -0400
commitad28acd18ea6275dad285895ac2abd4a0482b469 (patch)
tree0c0d5bb26c52c6378ce7ac4e972305898a5ae612 /toxcore/list.c
parentb6cbdefb5500cfec2fec26f1144d789b09e628f5 (diff)
Fixed an issue in list.
Cleaned up TCP server a bit.
Diffstat (limited to 'toxcore/list.c')
-rw-r--r--toxcore/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/list.c b/toxcore/list.c
index bf22f799..95ace12d 100644
--- a/toxcore/list.c
+++ b/toxcore/list.c
@@ -124,7 +124,7 @@ int list_find(LIST *list, void *data)
124 124
125 //return only -1 and positive values 125 //return only -1 and positive values
126 if (r < 0) { 126 if (r < 0) {
127 r = -1; 127 return -1;
128 } 128 }
129 129
130 return list->ids[r]; 130 return list->ids[r];