Browse Source

Fix harmless warning.

tomcast.c: In function connect_source:
tomcast.c:540: warning: comparison between signed and unsigned
Georgi Chorbadzhiyski 10 years ago
parent
commit
031f94132a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tomcast.c

+ 1
- 1
tomcast.c View File

@@ -537,7 +537,7 @@ int connect_source(RESTREAMER *r, int retries, int readbuflen, int *http_code) {
537 537
 			if (strstr(buf,"HTTP/1.") != NULL) {
538 538
 				if (regexec(&http_response,buf,3,res,0) != REG_NOMATCH) {
539 539
 					char codestr[4];
540
-					if ((unsigned int)res[1].rm_eo-res[1].rm_so < sizeof(xresponse)) {
540
+					if ((unsigned long)(res[1].rm_eo - res[1].rm_so) < sizeof(xresponse)) {
541 541
 						strncpy(xresponse, &buf[res[1].rm_so], res[1].rm_eo-res[1].rm_so);
542 542
 						xresponse[res[1].rm_eo-res[1].rm_so] = '\0';
543 543
 						chomp(xresponse);

Loading…
Cancel
Save