]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/loop-util: rename function
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 16 Dec 2019 13:16:49 +0000 (14:16 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Dec 2019 07:48:33 +0000 (08:48 +0100)
As suggested in https://github.com/systemd/systemd/pull/14261#pullrequestreview-332398625.

src/shared/loop-util.c
src/shared/loop-util.h

index 6cb45f1f1bc15db75a2059d1e99dc785c317b4db..d92ef961624cf8e41dbf4cbd584f7c3aefc3012c 100644 (file)
@@ -29,7 +29,7 @@ static void cleanup_clear_loop_close(int *fd) {
         }
 }
 
-int loop_device_make_full(
+int loop_device_make(
                 int fd,
                 int open_flags,
                 uint64_t offset,
@@ -166,7 +166,7 @@ int loop_device_make_by_path(const char *path, int open_flags, uint32_t loop_fla
         if (fd < 0)
                 return -errno;
 
-        return loop_device_make_full(fd, open_flags, 0, 0, loop_flags, ret);
+        return loop_device_make(fd, open_flags, 0, 0, loop_flags, ret);
 }
 
 LoopDevice* loop_device_unref(LoopDevice *d) {
index a9c9a647a570600424cc2535c657144fb503fd3c..73f82a6d3054ecbdb5a7b7b0d0830759fffa9d43 100644 (file)
@@ -14,7 +14,7 @@ struct LoopDevice {
         bool relinquished;
 };
 
-int loop_device_make_full(int fd, int open_flags, uint64_t offset, uint64_t size, uint32_t loop_flags, LoopDevice **ret);
+int loop_device_make(int fd, int open_flags, uint64_t offset, uint64_t size, uint32_t loop_flags, LoopDevice **ret);
 int loop_device_make_by_path(const char *path, int open_flags, uint32_t loop_flags, LoopDevice **ret);
 int loop_device_open(const char *loop_path, int open_flags, LoopDevice **ret);