This fixes a few warnings of this type:
XXX.c: In function 'AAA':
XXX.c:YY: warning: array subscription has type 'char'
Tested on NetBSD 5.0.2 with gcc 4.1.3.
punctuation is allowed.*/
ptr = Req->argv[0];
while (*ptr) {
punctuation is allowed.*/
ptr = Req->argv[0];
while (*ptr) {
+ if (!isalnum((int)*ptr) &&
*ptr != '+' && *ptr != '-' &&
*ptr != '.' && *ptr != '_') {
Conn_Close(Client_Conn(Client), NULL,
*ptr != '+' && *ptr != '-' &&
*ptr != '.' && *ptr != '_') {
Conn_Close(Client_Conn(Client), NULL,
ptr = String;
while(*ptr) {
ptr = String;
while(*ptr) {
+ *ptr = toupper((int)*ptr);
ptr = String;
while(*ptr) {
ptr = String;
while(*ptr) {
+ *ptr = tolower((int)*ptr);