rem: rc = serial_setattr(fd, baud);
add: rc = serial_setspeed(fd, baud);
context: int serial_open(char * port, int baud){  int rc;  int fd;  /*   * open the serial port   */  fd = open(port, O_RDWR | O_NOCTTY /*| O_NONBLOCK*/);  if (fd < 0) {    fprintf(stderr, "%s: serial_open(): can't open device \"%s\": %s\n",            progname, port, strerror(errno));    exit(1);  }  /*   * set serial line attributes   */  rc = serial_setattr(fd, baud);  if (rc) {    fprintf(stderr,             "%s: serial_open(): can't set attributes for device \"%s\"\n",            progname, port);    exit(1);  }  return fd;}