fix comma at end of enumerator list

This commit is contained in:
Jacek Jendrzej
2013-05-28 15:52:31 +02:00
parent 13398c4e0f
commit a549b97924
13 changed files with 27 additions and 32 deletions

View File

@@ -159,16 +159,12 @@ bool CFSMounter::isMounted(const char * const local_dir)
std::ifstream in;
if (local_dir == NULL)
return false;
// according to the man page realpath() sucks, but there's nothing better :(
int path_max = 0;
#ifdef PATH_MAX
path_max = PATH_MAX;
char mount_point[PATH_MAX];
#else
path_max = 4096;
char mount_point[4096];
#endif
char mount_point[path_max];
if (realpath(local_dir, mount_point) == NULL) {
printf("[CFSMounter] could not resolve dir: %s: %s\n",local_dir, strerror(errno));
return false;