From: norly Date: Wed, 16 Mar 2022 21:29:58 +0000 (+0100) Subject: Clean up types and unused vars in struct elmcan X-Git-Url: https://git.enpas.org/?p=elmcan.git;a=commitdiff_plain;h=858a6a0ffa6af2bfa6c567f796f6f0565e777cef Clean up types and unused vars in struct elmcan --- diff --git a/module/elmcan.c b/module/elmcan.c index ed652de..dd8889b 100644 --- a/module/elmcan.c +++ b/module/elmcan.c @@ -127,16 +127,14 @@ struct elmcan { ELM327_STATE_RECEIVING, } state; - int drop_next_line; + bool drop_next_line; /* The CAN frame and config the ELM327 is sending/using, * or will send/use after finishing all cmds_todo */ struct can_frame can_frame_to_send; - unsigned short can_config; - unsigned long can_bitrate; - unsigned char can_bitrate_divisor; - int silent_monitoring; + u16 can_config; + u8 can_bitrate_divisor; /* Things we have yet to send */ char **next_init_cmd;