mirror of
https://github.com/nilfs-dev/nilfs-utils.git
synced 2026-01-26 13:43:15 +00:00
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>
11 lines
175 B
C
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__ */
|