mbed library sources

Fork of mbed-src by mbed official

Revision:
1:62685faffa05
Parent:
0:fd0d7bdfcdc2
Child:
2:143cac498751
diff -r fd0d7bdfcdc2 -r 62685faffa05 cpp/FileSystemLike.cpp
--- a/cpp/FileSystemLike.cpp	Tue Nov 20 17:24:08 2012 +0000
+++ b/cpp/FileSystemLike.cpp	Thu Nov 29 15:41:14 2012 +0000
@@ -131,16 +131,16 @@
     file_name = file_system;
     int len = 0;
     while (true) {
-        char c = *file_name++;
+        char c = *file_name;
         if (c == '/') { // end of object name
-            /* file now points to one char after the '/' */
+            file_name++; // point to one char after the '/'
             break;
         }
         if (c == 0) { // end of object name, with no filename
-            file_name = NULL;
             break;
         }
         len++;
+        file_name++;
     }
     
     fs = FileSystemLike::lookup(file_system, len);
@@ -154,9 +154,4 @@
     return fs;
 }
 
-FileSystemLike* FilePath::getFileSystem(const char* path) {
-    FilePath f(path);
-    return f.fs;
-}
-
 } // namespace mbed