comparison src/network.c @ 8248:fabcfd9a7c1c

[gaim-migrate @ 8971] marv, is this peachy? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 12 Feb 2004 23:41:04 +0000
parents e7524f4b4ed2
children b248c1f4efbd
comparison
equal deleted inserted replaced
8247:4a6448907382 8248:fabcfd9a7c1c
197 int gaim_network_listen_range(short start, short end) 197 int gaim_network_listen_range(short start, short end)
198 { 198 {
199 int ret = -1; 199 int ret = -1;
200 200
201 if (gaim_prefs_get_bool("/core/network/ports_range_use") || 201 if (gaim_prefs_get_bool("/core/network/ports_range_use") ||
202 (start > end) || (start < 1024) || (end < 1024)) { 202 (start > end) || (start < 0) || (end < 0)) {
203 start = gaim_prefs_get_int("/core/network/ports_range_start"); 203 start = gaim_prefs_get_int("/core/network/ports_range_start");
204 end = gaim_prefs_get_int("/core/network/ports_range_end"); 204 end = gaim_prefs_get_int("/core/network/ports_range_end");
205 } 205 }
206 206
207 for (; start <= end; start++) { 207 for (; start <= end; start++) {