diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2025-01-26 14:42:01 +0800 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2025-01-30 18:30:16 +0100 |
commit | b66c6ce14c0089ac4fa5372df1af631a055ad5b4 (patch) | |
tree | 8709ccfabff15b131e3da92032efdbb2b652c7de | |
parent | 8e8697a4ee2edbc14f16720613cbf408d70eb895 (diff) |
tests: checkfs: Add previous prototype for do_pwr_dn()
The compiler complains following message:
tests/checkfs/comm.c:37:5: warning: no previous prototype for
‘do_pwr_dn’
The function do_pwr_dn() is only used in tests/checkfs/checkfs.c, but
we still keep it in tests/checkfs/comm.c in case the function() is
used by more callers. Fix it by adding a previous declaration.
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r-- | tests/checkfs/comm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/checkfs/comm.c b/tests/checkfs/comm.c index c8c457e..9f4e20d 100644 --- a/tests/checkfs/comm.c +++ b/tests/checkfs/comm.c @@ -28,6 +28,8 @@ #include <unistd.h> #include <string.h> +int do_pwr_dn(int fd, int cycleCnt); + /* This is the routine that forms and sends the "ok to pwr me down" message |