]> git.corax.cc Git - toolbox/commitdiff
include/uipc: Fix version checking when dumping uipc messages
authorMatthias Kruk <m@m10k.eu>
Fri, 10 Mar 2023 11:16:40 +0000 (20:16 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 10 Mar 2023 11:16:40 +0000 (20:16 +0900)
The function `uipc_msg_dump()' still references `_uipc_msg_get()'
even though it was removed from the module, rendering the function
unable to figure out the message version.

This commit changes the uipc module to use `ipc_msg_get_version()'
to query message versions.

include/uipc.sh

index ccc0b4755d6b9f9e1d29363a1e31f21bcf7d23fd..1e677952b3ac33625b3dceedda9360503a1e19c2 100644 (file)
@@ -74,7 +74,7 @@ uipc_msg_dump() {
        local version_ok
 
        version_ok="no"
-       version=$(_uipc_msg_get "$msg" "version")
+       version=$(ipc_msg_get_version "$msg" "version")
 
        if _uipc_msg_version_supported "$msg"; then
                version_ok="yes"