mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 07:01:39 +00:00
Minor code cleanup.
This commit is contained in:
parent
501090aaa6
commit
dd9f06f0d5
1 changed files with 3 additions and 3 deletions
|
@ -747,7 +747,7 @@ static int cread_line(char *buf, unsigned int *len)
|
||||||
ichar = getcmd_getch();
|
ichar = getcmd_getch();
|
||||||
|
|
||||||
if ((ichar == '\n') || (ichar == '\r')) {
|
if ((ichar == '\n') || (ichar == '\r')) {
|
||||||
printf("\n");
|
putc('\n');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -804,7 +804,7 @@ static int cread_line(char *buf, unsigned int *len)
|
||||||
esc_save[esc_len] = ichar;
|
esc_save[esc_len] = ichar;
|
||||||
esc_len = 1;
|
esc_len = 1;
|
||||||
} else {
|
} else {
|
||||||
printf("impossible condition #876\n");
|
puts("impossible condition #876\n");
|
||||||
esc_len = 0;
|
esc_len = 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -940,7 +940,7 @@ int readline (const char *const prompt)
|
||||||
initted = 1;
|
initted = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("%s",prompt);
|
puts (prompt);
|
||||||
|
|
||||||
return cread_line(p, &len);
|
return cread_line(p, &len);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Reference in a new issue