shrpx: Make is_secure() static

This commit is contained in:
Tatsuhiro Tsujikawa 2012-12-07 23:14:20 +09:00
parent cbf8ccf7d1
commit 06220f7fdf
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,7 @@ int split_host_port(char *host, size_t hostlen, uint16_t *port_ptr,
} }
} // namespace } // namespace
namespace {
bool is_secure(const char *filename) bool is_secure(const char *filename)
{ {
struct stat buf; struct stat buf;
@ -143,6 +144,7 @@ bool is_secure(const char *filename)
return false; return false;
} }
} // namespace
std::string read_passwd_from_file(const char *filename) std::string read_passwd_from_file(const char *filename)
{ {