mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 18:35:41 +01:00 
			
		
		
		
	fix some petty constness
fix the ./configure file too Change-Id: I96cfc84e08e9bab517dec24c92f856efa5ad04ca
This commit is contained in:
		
							
								
								
									
										4
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								configure
									
									
									
									
										vendored
									
									
								
							| @@ -10311,7 +10311,7 @@ CC="$lt_save_CC" | |||||||
|  |  | ||||||
| ac_config_headers="$ac_config_headers config.h" | ac_config_headers="$ac_config_headers config.h" | ||||||
|  |  | ||||||
| ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile" | ac_config_files="$ac_config_files Makefile examples/Makefile src/dec/Makefile" | ||||||
|  |  | ||||||
| cat >confcache <<\_ACEOF | cat >confcache <<\_ACEOF | ||||||
| # This file is a shell script that caches the results of configure | # This file is a shell script that caches the results of configure | ||||||
| @@ -11283,7 +11283,7 @@ do | |||||||
|     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||||||
|     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||||||
|     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; | ||||||
|     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |     "src/dec/Makefile") CONFIG_FILES="$CONFIG_FILES src/dec/Makefile" ;; | ||||||
|  |  | ||||||
|   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | ||||||
|   esac |   esac | ||||||
|   | |||||||
| @@ -33,7 +33,7 @@ static void help(const char *s) { | |||||||
|         ); |         ); | ||||||
| } | } | ||||||
|  |  | ||||||
| int main(int argc, char *argv[]) { | int main(int argc, const char *argv[]) { | ||||||
|   const char *in_file = NULL; |   const char *in_file = NULL; | ||||||
|   const char *out_file = NULL; |   const char *out_file = NULL; | ||||||
|   int raw_output = 0; |   int raw_output = 0; | ||||||
| @@ -85,9 +85,9 @@ int main(int argc, char *argv[]) { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     if (!raw_output) { |     if (!raw_output) { | ||||||
|       out = WebPDecodeRGB(data, data_size, &width, &height); |       out = WebPDecodeRGB((const uint8_t*)data, data_size, &width, &height); | ||||||
|     } else { |     } else { | ||||||
|       out = WebPDecodeYUV(data, data_size, &width, &height, |       out = WebPDecodeYUV((const uint8_t*)data, data_size, &width, &height, | ||||||
|                           &u, &v, &stride, &uv_stride); |                           &u, &v, &stride, &uv_stride); | ||||||
|     } |     } | ||||||
|     free(data); |     free(data); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user