summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-11-09 15:08:40 +0100
committerLennart Poettering <lennart@poettering.net>2022-11-09 15:08:40 +0100
commitab10dfe0d5101f54501fcbbcfe0267f9720bde1a (patch)
treee1fc96b47d57aafb29cfd96695e7b001068268de /src
parentMerge pull request #25314 from poettering/dissect-list-tweaks (diff)
downloadsystemd-ab10dfe0d5101f54501fcbbcfe0267f9720bde1a.tar.xz
systemd-ab10dfe0d5101f54501fcbbcfe0267f9720bde1a.zip
acpi-fpdt: use our usual ret_xyz naming scheme
Diffstat (limited to 'src')
-rw-r--r--src/shared/acpi-fpdt.c10
-rw-r--r--src/shared/acpi-fpdt.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/shared/acpi-fpdt.c b/src/shared/acpi-fpdt.c
index cccea2f727..c499c7e067 100644
--- a/src/shared/acpi-fpdt.c
+++ b/src/shared/acpi-fpdt.c
@@ -61,7 +61,7 @@ struct acpi_fpdt_boot {
uint64_t exit_services_exit;
} _packed;
-int acpi_get_boot_usec(usec_t *loader_start, usec_t *loader_exit) {
+int acpi_get_boot_usec(usec_t *ret_loader_start, usec_t *ret_loader_exit) {
_cleanup_free_ char *buf = NULL;
struct acpi_table_header *tbl;
size_t l = 0;
@@ -138,10 +138,10 @@ int acpi_get_boot_usec(usec_t *loader_start, usec_t *loader_exit) {
if (brec.exit_services_exit > NSEC_PER_HOUR)
return -EINVAL;
- if (loader_start)
- *loader_start = brec.startup_start / 1000;
- if (loader_exit)
- *loader_exit = brec.exit_services_exit / 1000;
+ if (ret_loader_start)
+ *ret_loader_start = brec.startup_start / 1000;
+ if (ret_loader_exit)
+ *ret_loader_exit = brec.exit_services_exit / 1000;
return 0;
}
diff --git a/src/shared/acpi-fpdt.h b/src/shared/acpi-fpdt.h
index 9eef92bc35..56f8c9e077 100644
--- a/src/shared/acpi-fpdt.h
+++ b/src/shared/acpi-fpdt.h
@@ -3,4 +3,4 @@
#include <time-util.h>
-int acpi_get_boot_usec(usec_t *loader_start, usec_t *loader_exit);
+int acpi_get_boot_usec(usec_t *ret_loader_start, usec_t *ret_loader_exit);