From 319d32117d75d835749fd6488b89e18fb0ea233e Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sun, 24 Nov 2013 14:43:06 +0100 Subject: Removed a stale comment. --- source/OSSupport/Socket.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'source/OSSupport') diff --git a/source/OSSupport/Socket.cpp b/source/OSSupport/Socket.cpp index c461d38a4..f25f800c2 100644 --- a/source/OSSupport/Socket.cpp +++ b/source/OSSupport/Socket.cpp @@ -210,9 +210,6 @@ bool cSocket::BindToAnyIPv4(unsigned short a_Port) bool cSocket::BindToAnyIPv6(unsigned short a_Port) { - // Cannot use socckaddr_in6, because it is not defined in the default VS2008 SDK - // Must jump through hoops here - sockaddr_in6 local; memset(&local, 0, sizeof(local)); -- cgit v1.2.3 From 0fef69e6124d6725ef42917beccf2d6a1e4a7918 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Mon, 25 Nov 2013 21:24:41 +0100 Subject: Fixed cFile compilation on Linux. --- source/OSSupport/File.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source/OSSupport') diff --git a/source/OSSupport/File.cpp b/source/OSSupport/File.cpp index 274aa52da..9f7c0d439 100644 --- a/source/OSSupport/File.cpp +++ b/source/OSSupport/File.cpp @@ -394,13 +394,14 @@ AStringVector cFile::GetFolderContents(const AString & a_Folder) DIR * dp; struct dirent *dirp; - if (*a_Directory == 0) + AString Folder = a_Folder; + if (Folder.empty()) { - a_Directory = "."; + Folder = "."; } - if ((dp = opendir(a_Directory)) == NULL) + if ((dp = opendir(Folder.c_str())) == NULL) { - LOGERROR("Error (%i) opening directory \"%s\"\n", errno, a_Directory ); + LOGERROR("Error (%i) opening directory \"%s\"\n", errno, Folder.c_str()); } else { -- cgit v1.2.3