Changeset c9f6e49f in mainline
- Timestamp:
- 2008-04-13T02:53:09Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 06901c6b
- Parents:
- 9ad75d5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libfs/libfs.c
r9ad75d5 rc9f6e49f 143 143 int lflag = IPC_GET_ARG4(*request); 144 144 fs_index_t index = IPC_GET_ARG5(*request); /* when L_LINK specified */ 145 char component[NAME_MAX + 1]; 146 int len; 145 147 146 148 if (last < next) … … 153 155 next++; /* eat slash */ 154 156 155 char component[NAME_MAX + 1];156 int len = 0;157 157 while (ops->has_children(cur) && next <= last) { 158 158 void *tmp; 159 159 160 160 /* collect the component */ 161 len = 0; 161 162 while ((ops->plb_get_char(next) != '/') && (next <= last)) { 162 163 if (len + 1 == NAME_MAX) { … … 172 173 component[len] = '\0'; 173 174 next++; /* eat slash */ 174 len = 0;175 175 176 176 /* match the component */ … … 237 237 238 238 /* collect next component */ 239 len = 0; 239 240 while (next <= last) { 240 241 if (ops->plb_get_char(next) == '/') { … … 253 254 assert(len); 254 255 component[len] = '\0'; 255 len = 0;256 256 257 257 void *nodep;
Note:
See TracChangeset
for help on using the changeset viewer.