Switch to unified view

a/src/utils/readfile.cpp b/src/utils/readfile.cpp
...
...
47
static void caterrno(string *reason, const char *what, int _errno)
47
static void caterrno(string *reason, const char *what, int _errno)
48
{
48
{
49
    if (reason) {
49
    if (reason) {
50
    reason->append(what);
50
    reason->append(what);
51
    reason->append(": errno: ");
51
    reason->append(": errno: ");
52
    char nbuf[10];
52
    char nbuf[20];
53
    sprintf(nbuf, "%d", _errno);
53
    sprintf(nbuf, "%d", _errno);
54
    reason->append(nbuf);
54
    reason->append(nbuf);
55
    reason->append(" : ");
55
    reason->append(" : ");
56
#ifdef sun
56
#ifdef sun
57
    // Note: sun strerror is noted mt-safe ??
57
    // Note: sun strerror is noted mt-safe ??