void strlower(char *str)
{
while (*str) {
- *str = tolower(*str);
+ *str = tolower((int) *str);
str++;
}
}
break;
case OPT_CLOCK_OFFSET:
{
- char *str, *endptr;
+ const char *str;
+ char *endptr;
str = poptGetOptArg(pc);
if (!str) {
}
strlower(opt_input_format);
}
- if (opt_output_format) {
+ if (opt_output_format_arg) {
opt_output_format = strdup(opt_output_format_arg);
if (!opt_output_format) {
partial_error = 1;