nilfs-utils/include/check_mount.h
Ryusuke Konishi 4a9a580250 libmountchk: introduce check_mount.h for check_mount function
The function 'check_mount' is shared among several utilities but lacks a
proper header declaration, relying instead on ad-hoc 'extern' declarations
in each source file.  This triggers a Sparse warning suggesting the symbol
should be static.

Introduce a new header file "check_mount.h" to centralize the prototype
declaration.  Include this header in the defining file and all users,
removing the redundant manual declarations.

This resolves the following Sparse warning:

ismounted.c:119:5: warning: symbol 'check_mount' was not declared. Should
 it be static?

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
2026-01-11 01:55:08 +09:00

11 lines
175 B
C

/*
* check_mount.h - mount status check helper
*/
#ifndef __CHECK_MOUNT_H__
#define __CHECK_MOUNT_H__
int check_mount(const char *device);
#endif /* __CHECK_MOUNT_H__ */