Message ID | 20230328131935.21945-2-chrubis@suse.cz |
---|---|
State | Accepted |
Headers | show |
Series | Minor fixes for tst_device | expand |
diff --git a/include/tst_device.h b/include/tst_device.h index 39545fab0..36258f436 100644 --- a/include/tst_device.h +++ b/include/tst_device.h @@ -49,7 +49,7 @@ int tst_clear_device(const char *dev); * free loopdev). If path is non-NULL, it will be filled with free loopdev path. * */ -int tst_find_free_loopdev(const char *path, size_t path_len); +int tst_find_free_loopdev(char *path, size_t path_len); /* * Attaches a file to a loop device. diff --git a/lib/tst_device.c b/lib/tst_device.c index 892e0b2e6..0cdd8985e 100644 --- a/lib/tst_device.c +++ b/lib/tst_device.c @@ -38,6 +38,7 @@ #include "lapi/syscalls.h" #include "test.h" #include "safe_macros.h" +#include "tst_device.h" #ifndef LOOP_CTL_GET_FREE # define LOOP_CTL_GET_FREE 0x4C82
+ Fix broken function prototype Signed-off-by: Cyril Hrubis <chrubis@suse.cz> --- include/tst_device.h | 2 +- lib/tst_device.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)