Code

Add a suffix to integer marshal/unmarshal functions specifying the int size.
[sysdb.git] / src / tools / sysdb / command.c
index 9589875300d468c7b9e6b7268fef5705a9580773..2706dd220e12fbe8e5bacb0af539b313d08a8a8a 100644 (file)
@@ -49,7 +49,7 @@
 static void
 log_printer(sdb_strbuf_t *buf)
 {
-       uint32_t prio = sdb_proto_get_int(buf, 0);
+       uint32_t prio = sdb_proto_unmarshal_int32(SDB_STRBUF_STR(buf));
 
        if (prio == UINT32_MAX) {
                sdb_log(SDB_LOG_WARNING, "Received a LOG message with invalid "