diff common/directory.cpp @ 23:03068f5ed79d

Misc: various style issues, #419
author David Demelier <markand@malikania.fr>
date Sun, 14 Feb 2016 16:15:48 +0100
parents 1158cffe5a5e
children
line wrap: on
line diff
--- a/common/directory.cpp	Fri Feb 12 21:02:28 2016 +0100
+++ b/common/directory.cpp	Sun Feb 14 16:15:48 2016 +0100
@@ -57,7 +57,7 @@
 	return errmsg;
 }
 
-}
+} // !namespace
 
 void Directory::systemLoad(const std::string &path, int flags)
 {
@@ -108,7 +108,7 @@
 	struct dirent *ent;
 
 	if ((dp = opendir(path.c_str())) == nullptr)
-		throw std::runtime_error(strerror(errno));
+		throw std::runtime_error(std::strerror(errno));
 
 	while ((ent = readdir(dp)) != nullptr) {
 		DirectoryEntry entry;