* Configurable parameters.
*/
dcb.BaudRate = conf_get_int(conf, CONF_serspeed);
- msg = dupprintf("Configuring baud rate %d", dcb.BaudRate);
+ msg = dupprintf("Configuring baud rate %lu", dcb.BaudRate);
logevent(serial->frontend, msg);
sfree(msg);
dcb.ByteSize = conf_get_int(conf, CONF_serdatabits);
- msg = dupprintf("Configuring %d data bits", dcb.ByteSize);
+ msg = dupprintf("Configuring %u data bits", dcb.ByteSize);
logevent(serial->frontend, msg);
sfree(msg);
* freed by the caller.
*/
static const char *serial_init(void *frontend_handle, void **backend_handle,
- Conf *conf, char *host, int port,
+ Conf *conf, const char *host, int port,
char **realhost, int nodelay, int keepalive)
{
Serial serial;
/*
* Called to send data down the serial connection.
*/
-static int serial_send(void *handle, char *buf, int len)
+static int serial_send(void *handle, const char *buf, int len)
{
Serial serial = (Serial) handle;
serial_provide_logctx,
serial_unthrottle,
serial_cfg_info,
+ NULL /* test_for_upstream */,
"serial",
PROT_SERIAL,
0