fix some petty constness

fix the ./configure file too

Change-Id: I96cfc84e08e9bab517dec24c92f856efa5ad04ca
This commit is contained in:
Pascal Massimino 2011-01-23 12:47:44 -08:00
parent 504d33937c
commit 3254fc5259
2 changed files with 5 additions and 5 deletions

4
configure vendored
View File

@ -10311,7 +10311,7 @@ CC="$lt_save_CC"
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
# 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" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES 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;;
esac

View File

@ -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 *out_file = NULL;
int raw_output = 0;
@ -85,9 +85,9 @@ int main(int argc, char *argv[]) {
}
if (!raw_output) {
out = WebPDecodeRGB(data, data_size, &width, &height);
out = WebPDecodeRGB((const uint8_t*)data, data_size, &width, &height);
} else {
out = WebPDecodeYUV(data, data_size, &width, &height,
out = WebPDecodeYUV((const uint8_t*)data, data_size, &width, &height,
&u, &v, &stride, &uv_stride);
}
free(data);