aboutsummaryrefslogtreecommitdiff
path: root/libbb/speed_table.c
diff options
context:
space:
mode:
authorGravatar Peter Kjellerstedt <peter.kjellerstedt@axis.com>2006-06-20 16:35:37 +0000
committerGravatar Peter Kjellerstedt <peter.kjellerstedt@axis.com>2006-06-20 16:35:37 +0000
commit5ab8f7de4fa4015f4be79be3e436d536c3be225d (patch)
tree8656a083b8e3bae5dbf60a1bcc24d10ad31d4cf7 /libbb/speed_table.c
parent57c1f73dd5aaabe22107320e3c21d22ae4313d60 (diff)
downloadbusybox-5ab8f7de4fa4015f4be79be3e436d536c3be225d.tar.gz
busybox-5ab8f7de4fa4015f4be79be3e436d536c3be225d.tar.bz2
Use the new names for tty_baud_to_value() and tty_value_to_baud() again.
Diffstat (limited to 'libbb/speed_table.c')
-rw-r--r--libbb/speed_table.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/speed_table.c b/libbb/speed_table.c
index d690d55dc..a4b22ef98 100644
--- a/libbb/speed_table.c
+++ b/libbb/speed_table.c
@@ -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;
}