mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
exist_file() is inline now.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
d543be11d9
commit
d154b0f676
@ -659,14 +659,6 @@ extension (const char *filename)
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
int
|
||||
exist_file (const char *name)
|
||||
{
|
||||
return access (name, R_OK) == 0;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
int
|
||||
check_for_default (const char *default_file, const char *file)
|
||||
{
|
||||
|
@ -156,8 +156,6 @@ void init_uid_gid_cache (void);
|
||||
char *get_group (int);
|
||||
char *get_owner (int);
|
||||
|
||||
int exist_file (const char *name);
|
||||
|
||||
/* Check if the file exists. If not copy the default */
|
||||
int check_for_default (const char *default_file, const char *file);
|
||||
|
||||
@ -224,4 +222,10 @@ char *guess_message_value (void);
|
||||
|
||||
/*** inline functions **************************************************/
|
||||
|
||||
static inline gboolean
|
||||
exist_file (const char *name)
|
||||
{
|
||||
return (access (name, R_OK) == 0);
|
||||
}
|
||||
|
||||
#endif /* MC_UTIL_H */
|
||||
|
Loading…
Reference in New Issue
Block a user