mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
thunderbolt: Change len from int to size_t in router_prepare_{read,write}()
Suggested by: ngie Reviewed by: ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59668
This commit is contained in:
1 file changed
+4
-4
@@ -64,9 +64,9 @@ static int _tb_router_attach(struct router_softc *);
|
||||
static void router_prepare_cmd(struct router_softc *, struct router_command *,
|
||||
size_t, uint16_t);
|
||||
static void router_prepare_read(struct router_softc *, struct router_command *,
|
||||
int);
|
||||
size_t);
|
||||
static void router_prepare_write(struct router_softc *, struct router_command *,
|
||||
int);
|
||||
size_t);
|
||||
static int _tb_config_read(struct router_softc *, u_int, u_int, u_int, u_int,
|
||||
uint32_t *, void *, struct router_command **);
|
||||
static int _tb_config_write(struct router_softc *, u_int, u_int, u_int, u_int,
|
||||
@@ -639,7 +639,7 @@ router_prepare_cmd(struct router_softc *sc, struct router_command *cmd,
|
||||
|
||||
static void
|
||||
router_prepare_read(struct router_softc *sc, struct router_command *cmd,
|
||||
int len)
|
||||
size_t len)
|
||||
{
|
||||
router_prepare_cmd(sc, cmd, len, PDF_READ);
|
||||
|
||||
@@ -649,7 +649,7 @@ router_prepare_read(struct router_softc *sc, struct router_command *cmd,
|
||||
|
||||
static void
|
||||
router_prepare_write(struct router_softc *sc, struct router_command *cmd,
|
||||
int len)
|
||||
size_t len)
|
||||
{
|
||||
router_prepare_cmd(sc, cmd, len, PDF_WRITE);
|
||||
|
||||
|
||||
Reference in new issue
Block a user