projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade netcat a lot. Make -e able to take the rest of the command line as
[oweals/busybox.git]
/
libbb
/
speed_table.c
diff --git
a/libbb/speed_table.c
b/libbb/speed_table.c
index d690d55dc435d2bc640db90150eb300c018ddd32..6137b7731edbefeb6c00205b0cd9c963e2b33a14 100644
(file)
--- 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)) };
enum { NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map)) };
-unsigned
long bb
_baud_to_value(speed_t speed)
+unsigned
int tty
_baud_to_value(speed_t speed)
{
int i = 0;
{
int i = 0;
@@
-72,12
+72,12
@@
unsigned long bb_baud_to_value(speed_t speed)
return 0;
}
return 0;
}
-speed_t
bb_value_to_baud(unsigned long
value)
+speed_t
tty_value_to_baud(unsigned int
value)
{
int i = 0;
do {
{
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);
return speeds[i].speed;
}
} while (++i < NUM_SPEEDS);
@@
-95,7
+95,7
@@
int main(void)
speed_t s;
for (v = 0 ; v < 500000 ; v++) {
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;
}
if (s == (speed_t) -1) {
continue;
}
@@
-105,7
+105,7
@@
int main(void)
printf("-------------------------------\n");
for (s = 0 ; s < 010017+1 ; s++) {
printf("-------------------------------\n");
for (s = 0 ; s < 010017+1 ; s++) {
- v =
bb
_baud_to_value(s);
+ v =
tty
_baud_to_value(s);
if (!v) {
continue;
}
if (!v) {
continue;
}