summaryrefslogtreecommitdiffstats
path: root/src/sysupdate/sysupdate.c
diff options
context:
space:
mode:
authorAbderrahim Kitouni <abderrahim.kitouni@codethink.co.uk>2024-07-14 10:29:34 +0200
committerLennart Poettering <lennart@poettering.net>2024-07-15 10:18:41 +0200
commit22b414f185827e905c81949ae8a30a7d8d3ae17c (patch)
tree6a88b2c127d9480a272a2c59589aa454916979ef /src/sysupdate/sysupdate.c
parentfstab-generator: add x-systemd.wants (diff)
downloadsystemd-22b414f185827e905c81949ae8a30a7d8d3ae17c.tar.xz
systemd-22b414f185827e905c81949ae8a30a7d8d3ae17c.zip
sysupdate: fix return types according to style guide
Diffstat (limited to '')
-rw-r--r--src/sysupdate/sysupdate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sysupdate/sysupdate.c b/src/sysupdate/sysupdate.c
index fcf8c10080..3fcb2839d0 100644
--- a/src/sysupdate/sysupdate.c
+++ b/src/sysupdate/sysupdate.c
@@ -67,7 +67,7 @@ typedef struct Context {
Hashmap *web_cache; /* Cache for downloaded resources, keyed by URL */
} Context;
-static Context *context_free(Context *c) {
+static Context* context_free(Context *c) {
if (!c)
return NULL;
@@ -86,7 +86,7 @@ static Context *context_free(Context *c) {
DEFINE_TRIVIAL_CLEANUP_FUNC(Context*, context_free);
-static Context *context_new(void) {
+static Context* context_new(void) {
/* For now, no fields to initialize non-zero */
return new0(Context, 1);
}
@@ -411,7 +411,7 @@ static int context_show_table(Context *c) {
return table_print_with_pager(t, arg_json_format_flags, arg_pager_flags, arg_legend);
}
-static UpdateSet *context_update_set_by_version(Context *c, const char *version) {
+static UpdateSet* context_update_set_by_version(Context *c, const char *version) {
assert(c);
assert(version);