Changes in kernel/generic/src/console/kconsole.c [1558d85:e98f1c3e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/kconsole.c
r1558d85 re98f1c3e 166 166 const char *cmdtab_enum(const char *name, const char **h, void **ctx) 167 167 { 168 link_t **startpos = (link_t**) ctx;168 link_t **startpos = (link_t**) ctx; 169 169 size_t namelen = str_length(name); 170 170 … … 183 183 if (str_lcmp(curname, name, namelen) == 0) { 184 184 *startpos = (*startpos)->next; 185 if (h) {185 if (h) 186 186 *h = hlp->description; 187 }187 188 188 spinlock_unlock(&cmd_lock); 189 189 return (curname + str_lsize(curname, namelen)); … … 249 249 250 250 if (continue_showing_hints) { 251 252 251 if (help) 253 252 printf("%s%s (%s)\n", name, hint, help); … … 292 291 while (isspace(cmdline[start])) 293 292 start++; 293 294 294 end = start + 1; 295 295 296 while (!isspace(cmdline[end])) 296 297 end++; … … 374 375 for (beg = position - 1; 375 376 (beg > 0) && (!isspace(current[beg])); 376 beg--) { 377 ; 378 } 377 beg--); 379 378 380 379 if (isspace(current[beg])) … … 395 394 sp = false; 396 395 } 396 397 397 if (narg && isspace(current[0])) 398 398 narg--; 399 399 400 400 int found; 401 401 if (narg == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.