@@ -295,7 +295,7 @@ static void register_regex(struct hdl_regex **pregs, const char *regex)
295
295
* Checks whether any of the regular expressions in the list matches the
296
296
* string.
297
297
*/
298
- static int match_any_regex (struct hdl_regex * pregs , const char * what )
298
+ static inline int match_any_regex (struct hdl_regex * pregs , const char * what )
299
299
{
300
300
for (; pregs != NULL ; pregs = pregs -> next ) {
301
301
if (regexec (& pregs -> re , what , 0 , NULL , 0 ) == 0 )
@@ -649,7 +649,7 @@ static int file_xattrs_equal(const struct file *a, const struct file *b)
649
649
* Check whether the two files are considered equal attributes and can be
650
650
* linked. This function does not compare content od the files!
651
651
*/
652
- static int file_may_link_to (const struct file * a , const struct file * b )
652
+ static inline int file_may_link_to (const struct file * a , const struct file * b )
653
653
{
654
654
return (a -> st .st_size == b -> st .st_size &&
655
655
a -> links != NULL && b -> links != NULL &&
@@ -673,7 +673,7 @@ static int file_may_link_to(const struct file *a, const struct file *b)
673
673
* as the master when linking (the master is the file that all equal files
674
674
* will be replaced with).
675
675
*/
676
- static int file_compare (const struct file * a , const struct file * b )
676
+ static inline int file_compare (const struct file * a , const struct file * b )
677
677
{
678
678
int res = 0 ;
679
679
if (a -> st .st_dev == b -> st .st_dev && a -> st .st_ino == b -> st .st_ino )
@@ -815,7 +815,7 @@ static int file_link(struct file *a, struct file *b, int reflink)
815
815
return TRUE;
816
816
}
817
817
818
- static int has_fpath (struct file * node , const char * path )
818
+ static inline int has_fpath (struct file * node , const char * path )
819
819
{
820
820
struct link * l ;
821
821
0 commit comments