Branch: Tag:

2015-09-06

2015-09-06 19:43:42 by Martin Nilsson <nilsson@fastmail.com>

Cosmetic update of strerror use.

3538:    if( !file_stat(fn)->isreg )    exit(1, "File %O is not a regular file.\n", fn);    if( !master_read_file(fn) ) -  exit(1, "File %O is not readable. %s.\n", -  fn, strerror(errno())); +  exit(1, "File %O is not readable. %m.\n", fn);    if (objectp (err) && err->is_cpp_or_compilation_error)    exit(1, "Pike: Failed to compile script.\n");    else
5425:      #if "#share_prefix#"[0]!='#'    if (!(files = master_get_dir("#share_prefix#"))) { -  werror ("Error listing directory %O: %s\n", -  "#share_prefix#", strerror (errno())); +  werror ("Error listing directory %O: %m.\n", +  "#share_prefix#");    files = ({});    }    foreach(files, string ver)
5442:      #if "#lib_prefix#"[0]!='#'    if (!(files = master_get_dir("#lib_prefix#"))) { -  werror ("Error listing directory %O: %s\n", -  "#lib_prefix#", strerror (errno())); +  werror ("Error listing directory %O: %m.\n", +  "#lib_prefix#");    files = ({});    }    foreach(files, string ver)