p_stream = utf8_fopen( psz_filename, mode );
if( p_stream == NULL && errno != ENOENT )
{
- msg_Err( p_obj, "cannot open config file (%s): %s",
- psz_filename, strerror(errno) );
+ msg_Err( p_obj, "cannot open config file (%s): %m",
+ psz_filename );
}
#if !( defined(WIN32) || defined(__APPLE__) || defined(SYS_BEOS) )
{
long l = strtoi (psz_option_value);
if (errno)
- msg_Warn (p_this, "Integer value (%s) for %s: %s",
- psz_option_value, psz_option_name,
- strerror (errno));
+ msg_Warn (p_this, "Integer value (%s) for %s: %m",
+ psz_option_value, psz_option_name);
else
p_item->saved.i = p_item->value.i = (int)l;
break;
if (ferror (file))
{
- msg_Err (p_this, "error reading configuration: %s", strerror (errno));
+ msg_Err (p_this, "error reading configuration: %m");
clearerr (file);
}
fclose (file);
}
free( psz_parent );
}
- msg_Err( p_this, "could not create %s (%s)",
- psz_dirname, strerror(errno) );
+ msg_Err( p_this, "could not create %s: %m", psz_dirname );
return -1;
}