]>
git.ipfire.org Git - thirdparty/squid.git/blob - compat/xstrerror.cc
2 #include "compat/xstrerror.h"
11 static char xstrerror_buf
[BUFSIZ
];
12 const char *errmsg
= strerror(error
);
14 if (!errmsg
|| !*errmsg
)
15 errmsg
= "Unknown error";
17 snprintf(xstrerror_buf
, BUFSIZ
, "(%d) %s", error
, errmsg
);