mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-23 00:21:14 +02:00
move part of isobusfs code to the libj1939
Move part of isobusfs which can be reused by other applications to the libj1939. By the way, reuse some of new libj1939 code in the j1939cat. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
This commit is contained in:
@@ -213,14 +213,14 @@ static int isobusfs_srv_init_client(struct isobusfs_srv_priv *priv,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
ret = isobusfs_cmn_open_socket();
|
||||
ret = libj1939_open_socket();
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
client->sock = ret;
|
||||
|
||||
addr.can_addr.j1939.pgn = ISOBUSFS_PGN_CL_TO_FS;
|
||||
ret = isobusfs_cmn_bind_socket(client->sock, &addr);
|
||||
ret = libj1939_bind_socket(client->sock, &addr);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
@@ -243,7 +243,7 @@ static int isobusfs_srv_init_client(struct isobusfs_srv_priv *priv,
|
||||
goto close_socket;
|
||||
}
|
||||
|
||||
ret = isobusfs_cmn_socket_prio(client->sock, ISOBUSFS_PRIO_DEFAULT);
|
||||
ret = libj1939_socket_prio(client->sock, ISOBUSFS_PRIO_DEFAULT);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user