]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
discover-image: coding style fixlets
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Jun 2025 12:54:35 +0000 (21:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Jun 2025 13:45:08 +0000 (22:45 +0900)
src/shared/discover-image.c
src/shared/discover-image.h

index 71d64bed8df5b51b25d9f50245ad951199be407d..099f5e03f33ee91c4ca3abd7de709b4e03e9cfe3 100644 (file)
@@ -117,7 +117,7 @@ static const char *const image_root_runtime_table[_IMAGE_CLASS_MAX] = {
 
 DEFINE_STRING_TABLE_LOOKUP_TO_STRING(image_root_runtime, ImageClass);
 
-static Image *image_free(Image *i) {
+static Imageimage_free(Image *i) {
         assert(i);
 
         free(i->name);
@@ -136,7 +136,7 @@ DEFINE_TRIVIAL_REF_UNREF_FUNC(Image, image, image_free);
 DEFINE_HASH_OPS_WITH_VALUE_DESTRUCTOR(image_hash_ops, char, string_hash_func, string_compare_func,
                                       Image, image_unref);
 
-static char **image_settings_path(Image *image) {
+static char** image_settings_path(Image *image) {
         _cleanup_strv_free_ char **l = NULL;
         _cleanup_free_ char *fn = NULL;
         size_t i = 0;
@@ -653,7 +653,7 @@ static int pick_image_search_path(
         return 0;
 }
 
-static char **make_possible_filenames(ImageClass class, const char *image_name) {
+static char** make_possible_filenames(ImageClass class, const char *image_name) {
         _cleanup_strv_free_ char **l = NULL;
 
         assert(image_name);
index 4b586f68dd837d987625c52ae976cf248ee068fe..142c001f53af20fc895bb91ea053d53be575b4f0 100644 (file)
@@ -45,8 +45,8 @@ typedef struct Image {
         void *userdata;
 } Image;
 
-Image *image_unref(Image *i);
-Image *image_ref(Image *i);
+Imageimage_unref(Image *i);
+Imageimage_ref(Image *i);
 
 DEFINE_TRIVIAL_CLEANUP_FUNC(Image*, image_unref);
 
@@ -73,7 +73,7 @@ int image_read_metadata(Image *i, const ImagePolicy *image_policy);
 
 bool image_in_search_path(RuntimeScope scope, ImageClass class, const char *root, const char *image);
 
-static inline char **image_extension_release(Image *image, ImageClass class) {
+static inline char** image_extension_release(Image *image, ImageClass class) {
         assert(image);
 
         if (class == IMAGE_SYSEXT)