X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fdata%2Fdatasheet-test.c;h=98be04fe44b25c73a7cb608596b02296b3b3894c;hb=20751c90d1d6131fede84358ea2581d9ed443ae3;hp=a9f4bf2fb27f43b525fb764c07fb14c706d111d6;hpb=a40c445019ddfed3cdd348c2ce8026e467563c73;p=pspp-builds.git diff --git a/tests/data/datasheet-test.c b/tests/data/datasheet-test.c index a9f4bf2f..98be04fe 100644 --- a/tests/data/datasheet-test.c +++ b/tests/data/datasheet-test.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -404,7 +405,7 @@ value_from_param (union value *value, int width, unsigned int idx) else { unsigned int hash = hash_int (idx, 0); - char *string = value_str_rw (value, width); + uint8_t *string = value_str_rw (value, width); int offset; assert (width < 32); @@ -747,7 +748,7 @@ enum N_DATASHEET_OPTIONS }; -static struct argv_option datasheet_argv_options[N_DATASHEET_OPTIONS] = +static const struct argv_option datasheet_argv_options[N_DATASHEET_OPTIONS] = { {"max-rows", 0, required_argument, OPT_MAX_ROWS}, {"max-columns", 0, required_argument, OPT_MAX_COLUMNS},