mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 02:11:04 +02:00
fix comma at end of enumerator list
Origin commit data
------------------
Branch: ni/coolstream
Commit: a549b97924
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-05-28 (Tue, 28 May 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user