comparison Plugins/Input/wma/libffwma/avio.c @ 701:d539e5c5f730 trunk

[svn] Fixes of the remaining GCC 4.1 warnings from external contributor Diego "Flameeyes" Petteno (Gentoo).
author chainsaw
date Sun, 26 Feb 2006 13:08:35 -0800
parents ad1e65c6a854
children 1ddaf20ab50e
comparison
equal deleted inserted replaced
700:99382cddf771 701:d539e5c5f730
46 q = proto_str; 46 q = proto_str;
47 while (*p != '\0' && *p != ':') { 47 while (*p != '\0' && *p != ':') {
48 /* protocols can only contain alphabetic chars */ 48 /* protocols can only contain alphabetic chars */
49 if (!isalpha(*p)) 49 if (!isalpha(*p))
50 goto file_proto; 50 goto file_proto;
51 if ((q - proto_str) < sizeof(proto_str) - 1) 51 if ((size_t)(q - proto_str) < sizeof(proto_str) - 1)
52 *q++ = *p; 52 *q++ = *p;
53 p++; 53 p++;
54 } 54 }
55 /* if the protocol has length 1, we consider it is a dos drive */ 55 /* if the protocol has length 1, we consider it is a dos drive */
56 if (*p == '\0' || (q - proto_str) <= 1) { 56 if (*p == '\0' || (q - proto_str) <= 1) {