diff --git a/man/sd_bus_message_read.xml b/man/sd_bus_message_read.xml index aa3cffb432..2afa441742 100644 --- a/man/sd_bus_message_read.xml +++ b/man/sd_bus_message_read.xml @@ -174,6 +174,14 @@ int64_t x; sd_bus_message_read(m, "x", &x); + Read a boolean value: + + sd_bus_message *m; +int x; /* Do not use C99 'bool' type here, it's typically smaller + in memory and would cause memory corruption */ + +sd_bus_message_read(m, "b", &x); + Read all types of integers: uint8_t y; diff --git a/man/sd_bus_message_read_basic.xml b/man/sd_bus_message_read_basic.xml index 92574f7091..0502976dce 100644 --- a/man/sd_bus_message_read_basic.xml +++ b/man/sd_bus_message_read_basic.xml @@ -93,7 +93,7 @@ b SD_BUS_TYPE_BOOLEAN boolean - int * + int * (NB: not bool *)