comparison audacious/controlsocket.c @ 1454:de0146be48ee trunk

[svn] - fix the other bug exposed by strace
author nenolod
date Fri, 28 Jul 2006 14:13:59 -0700
parents 1c0cd95ef1ed
children 6fe7ba6e5489
comparison
equal deleted inserted replaced
1453:1c0cd95ef1ed 1454:de0146be48ee
159 strerror(errno)); 159 strerror(errno));
160 return FALSE; 160 return FALSE;
161 } 161 }
162 162
163 for (i = 0;; i++) { 163 for (i = 0;; i++) {
164 memset(&saddr, '\0', sizeof(saddr));
164 saddr.sin_family = AF_INET; 165 saddr.sin_family = AF_INET;
165 saddr.sin_port = htons(37370 + i); 166 saddr.sin_port = htons(37370 + i);
166 167
167 if (xmms_remote_is_running(i)) { 168 if (xmms_remote_is_running(i)) {
168 if (cfg.allow_multiple_instances) 169 if (cfg.allow_multiple_instances)