xfree86: common: xf86Option: fix char signess mismatch
On NetBSD gives warning:
In file included from /usr/include/ctype.h:100,
                 from ../hw/xfree86/common/xf86Option.c:39:
../hw/xfree86/common/xf86Option.c: In function ‘xf86NormalizeName’:
../hw/xfree86/common/xf86Option.c:915:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  915 |             if (isupper(*p))
      |                         ^
../hw/xfree86/common/xf86Option.c:916:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  916 |                 *q++ = tolower(*p);
      |                                ^
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1455>
			
			
This commit is contained in:
		
							parent
							
								
									99017bf948
								
							
						
					
					
						commit
						1f861bbb9d
					
				| 
						 | 
				
			
			@ -912,8 +912,8 @@ xf86NormalizeName(const char *s)
 | 
			
		|||
        case '\t':
 | 
			
		||||
            continue;
 | 
			
		||||
        default:
 | 
			
		||||
            if (isupper(*p))
 | 
			
		||||
                *q++ = tolower(*p);
 | 
			
		||||
            if (isupper((unsigned char)*p))
 | 
			
		||||
                *q++ = tolower((unsigned char)*p);
 | 
			
		||||
            else
 | 
			
		||||
                *q++ = *p;
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue