← Commit list

5ab8f7de4

Peter Kjellerstedt
Peter Kjellerstedt
2006-06-20
SOURCE BUG Duration: 34s

Subject

Use the new names for tty_baud_to_value() and tty_value_to_baud() again.

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/speed_table.c+5 -5
@@ -56,7 +56,7 @@ static const struct speed_map speeds[] = {
enum { NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map)) };
-unsigned long bb_baud_to_value(speed_t speed)
+unsigned long tty_baud_to_value(speed_t speed)
{
int i = 0;
@@ -72,12 +72,12 @@ unsigned long bb_baud_to_value(speed_t speed)
return 0;
}
-speed_t bb_value_to_baud(unsigned long value)
+speed_t tty_value_to_baud(unsigned long value)
{
int i = 0;
do {
- if (value == bb_baud_to_value(speeds[i].speed)) {
+ if (value == tty_baud_to_value(speeds[i].speed)) {
return speeds[i].speed;
}
} while (++i < NUM_SPEEDS);
@@ -95,7 +95,7 @@ int main(void)
speed_t s;
for (v = 0 ; v < 500000 ; v++) {
- s = bb_value_to_baud(v);
+ s = tty_value_to_baud(v);
if (s == (speed_t) -1) {
continue;
}
@@ -105,7 +105,7 @@ int main(void)
printf("-------------------------------\n");
for (s = 0 ; s < 010017+1 ; s++) {
- v = bb_baud_to_value(s);
+ v = tty_baud_to_value(s);
if (!v) {
continue;
}