Skip to content
Snippets Groups Projects
Commit 62401b84 authored by Sebastien Ponce's avatar Sebastien Ponce Committed by Steven Murray
Browse files

Cleaned up lot's of non compiled code inside old macros

parent 70d17c61
No related branches found
No related tags found
No related merge requests found
......@@ -13,11 +13,7 @@
#include "Castor_limits.h"
#ifndef PATH_CONFIG
#if defined(_WIN32)
#define PATH_CONFIG "%SystemRoot%\\system32\\drivers\\etc\\castor\\castor.conf"
#else
#define PATH_CONFIG "/etc/castor/castor.conf"
#endif
#endif /* PATH_CONFIG */
#if ((defined(_REENTRANT) || defined(_THREAD_SAFE)) && !defined(_WIN32))
......@@ -54,16 +50,7 @@ static char *getconfent_r(filename,category, name, flags, buffer, bufsiz)
}
}
#if defined(_WIN32)
if (strncmp (filename, "%SystemRoot%\\", 13) == 0 &&
(p = getenv ("SystemRoot"))) {
Csnprintf (path_config, CA_MAXPATHLEN, "%s\\%s", p, strchr (filename, '\\'));
} else {
#endif
strncpy (path_config, filename, CA_MAXPATHLEN);
#if defined(_WIN32)
}
#endif
strncpy (path_config, filename, CA_MAXPATHLEN);
/* Who knows */
path_config[CA_MAXPATHLEN] = '\0';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment