comparison libserial-posix/setbyname.c @ 661:fd7b447b99e3

libserial rename The version that was previously named libserial-newlnx is now libserial-linux, and the version that was previosly named libserial-orig is now libserial-posix. This new naming is more in line with the objective reality of the difference, moving away from naming based on our project history.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 05 Mar 2020 19:54:31 +0000
parents libserial-orig/setbyname.c@8c011177adb9
children
comparison
equal deleted inserted replaced
660:b34384991094 661:fd7b447b99e3
1 /*
2 * This module contains the wrapper function (used by loadtools)
3 * that looks up a baud rate by name and calls set_serial_baud().
4 */
5
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include "baudrate.h"
9
10 extern struct baudrate *find_baudrate_by_name();
11
12 set_fixed_baudrate(baudname)
13 char *baudname;
14 {
15 struct baudrate *br;
16
17 br = find_baudrate_by_name(baudname);
18 if (!br)
19 exit(1); /* error msg already printed */
20 set_serial_baudrate(br);
21 }