Code

Add a suffix to integer marshal/unmarshal functions specifying the int size.
[sysdb.git] / src / tools / sysdb / command.c
index e859bc795db43fc49d64c852fdd8f4f408c6e6e2..2706dd220e12fbe8e5bacb0af539b313d08a8a8a 100644 (file)
@@ -49,7 +49,7 @@
 static void
 log_printer(sdb_strbuf_t *buf)
 {
-       uint32_t prio = sdb_proto_unmarshal_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 "