Changeset 093752c in mainline
- Timestamp:
- 2007-02-05T12:57:10Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 828aa05
- Parents:
- 52c79ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/kconsole.c
r52c79ac r093752c 172 172 static const char * cmdtab_search_one(const char *name,link_t **startpos) 173 173 { 174 int namelen = strlen(name);174 size_t namelen = strlen(name); 175 175 const char *curname; 176 176 … … 417 417 418 418 while (true) { 419 cmdline = clever_readline( prompt, stdin);419 cmdline = clever_readline((char *) prompt, stdin); 420 420 len = strlen(cmdline); 421 421 if (!len) … … 487 487 cmd_info_t *cmd = NULL; 488 488 link_t *cur; 489 int i;489 count_t i; 490 490 int error = 0; 491 491 … … 541 541 switch (cmd->argv[i].type) { 542 542 case ARG_TYPE_STRING: 543 buf =cmd->argv[i].buffer;544 543 buf = (char *) cmd->argv[i].buffer; 544 strncpy(buf, (const char *) &cmdline[start], 545 545 min((end - start) + 2, cmd->argv[i].len)); 546 546 buf[min((end - start) + 1, cmd->argv[i].len - 1)] = '\0'; … … 554 554 if (start != end && cmdline[start] == '"' && 555 555 cmdline[end] == '"') { 556 buf = cmd->argv[i].buffer;556 buf = (char *) cmd->argv[i].buffer; 557 557 strncpy(buf, (const char *) &cmdline[start + 1], 558 558 min((end-start), cmd->argv[i].len)); … … 609 609 bool parse_argument(char *cmdline, size_t len, index_t *start, index_t *end) 610 610 { 611 in t i;611 index_t i; 612 612 bool found_start = false; 613 613
Note:
See TracChangeset
for help on using the changeset viewer.