Description: 修复 fnlist_match 非 static inline 导致的 undefined reference
 sitefiles.c 把 fnlist_match 声明为普通（非 static、无外部定义）的 inline
 函数；在 C 的 inline 语义下，未内联的调用点会产生对外部符号的引用，而该
 符号不存在，导致链接阶段 "undefined reference to `fnlist_match'" 并中止构建。
 将该函数改为 static inline，使调用在同一编译单元内正确解析。
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-09-15

--- sitecopy-0.16.6.orig/src/sitefiles.c
+++ sitecopy-0.16.6/src/sitefiles.c
@@ -51,7 +51,7 @@
 #include "sitesi.h"
 					     
 /* fnmatch the filename against list */
-inline int fnlist_match(const char *filename, const struct fnlist *list);
+static inline int fnlist_match(const char *filename, const struct fnlist *list);
 
 /* Deletes the given file from the given site */
 void file_delete(struct site *site, struct site_file *item) 
@@ -291,7 +291,7 @@
 
 /* Performs fnmatch() of all the strings in the given string list again
  * the given filename. Returns true if a pattern matches, else false. */
-inline int fnlist_match(const char *filename, const struct fnlist *list)
+static inline int fnlist_match(const char *filename, const struct fnlist *list)
 {
     const struct fnlist *item;
     const char *bname = base_name(filename);    

