Changeset 33b8d024 in mainline for uspace/app/bdsh/compl.c
- Timestamp:
- 2018-01-16T20:38:46Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2467b41
- Parents:
- d39c46e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/compl.c
rd39c46e0 r33b8d024 69 69 70 70 /** Pointer inside list of directories */ 71 const char * *path;71 const char *const *path; 72 72 /** If not @c NULL, should be freed in the end. */ 73 c onst char **path_list;73 char **path_list; 74 74 /** Current open directory */ 75 75 DIR *dir; … … 219 219 cs->path_list[0] = dirname; 220 220 cs->path_list[1] = NULL; 221 cs->path = cs->path_list; 221 /* The second const ensures that we can't assign a const 222 * string to the non-const array. */ 223 cs->path = (const char *const *) cs->path_list; 222 224 223 225 } else if (cs->is_command) {
Note:
See TracChangeset
for help on using the changeset viewer.