mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Move forward declaration of struct stat before its first use.
This commit is contained in:
@@ -184,6 +184,9 @@
|
||||
# define ignore_result(x) (void)(x)
|
||||
#endif
|
||||
|
||||
/* Forward struct declarations. */
|
||||
struct stat;
|
||||
|
||||
/* aix.c */
|
||||
sudo_dso_public int aix_getauthregistry_v1(char *user, char *saved_registry);
|
||||
#define aix_getauthregistry(_a, _b) aix_getauthregistry_v1((_a), (_b))
|
||||
@@ -296,7 +299,6 @@ sudo_dso_public unsigned int sudo_pow2_roundup_v1(unsigned int len);
|
||||
#define SUDO_PATH_WRONG_OWNER -3
|
||||
#define SUDO_PATH_WORLD_WRITABLE -4
|
||||
#define SUDO_PATH_GROUP_WRITABLE -5
|
||||
struct stat;
|
||||
sudo_dso_public int sudo_secure_dir_v1(const char *path, uid_t uid, gid_t gid, struct stat *sb);
|
||||
#define sudo_secure_dir(_a, _b, _c, _d) sudo_secure_dir_v1((_a), (_b), (_c), (_d))
|
||||
sudo_dso_public int sudo_secure_file_v1(const char *path, uid_t uid, gid_t gid, struct stat *sb);
|
||||
|
Reference in New Issue
Block a user