Module: sems
Branch: master
Commit: 54622c5cfab8139728fc628798294e90070abd44
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=54622c5cfab8139728fc628798294e90070abd44

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Tue Feb 28 14:26:46 2012 +0100

c/f: remove ifdef looking for internal glibc defines.

---

 apps/dsm/mods/mod_sys/ModSys.cpp |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/apps/dsm/mods/mod_sys/ModSys.cpp b/apps/dsm/mods/mod_sys/ModSys.cpp
index a0b1af4..60b6082 100644
--- a/apps/dsm/mods/mod_sys/ModSys.cpp
+++ b/apps/dsm/mods/mod_sys/ModSys.cpp
@@ -101,13 +101,7 @@ EXEC_ACTION_START(SCMkDirAction) {
 
 bool sys_get_parent_dir(const char* path, char* parentPath) {
 
-  //size_t pos = strcspn(dirPath, "/\\");
-#ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
-  const char* ptr;
-#else
-  char* ptr;
-#endif
-  ptr = strrchr(path, '/'); // search char from end reverse
+  const char* ptr = strrchr(path, '/'); // search char from end reverse
   if (ptr == NULL) {
     ptr = strrchr(path, '\\'); // search char from end reverse
     if (ptr == NULL) {

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to