Description: Fix FTBFS: remove inline from FindIp to provide an external symbol
 The FindIp function is declared and defined as a non-static inline function.
 Under modern GCC's C11 inline semantics a non-static, non-extern inline
 definition does not emit an external symbol, causing undefined references
 to FindIp at link time. Drop inline so the definition provides a real symbol.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-08-28

--- bandwidthd-2.0.1+cvs20090917.orig/bandwidthd.c
+++ bandwidthd-2.0.1+cvs20090917/bandwidthd.c
@@ -1257,7 +1257,7 @@ void RecoverDataFromCDF(void)
 // ****** FindIp **********
 // ****** Returns or allocates an Ip's data structure
 
-inline struct IPData *FindIp(uint32_t ipaddr)
+struct IPData *FindIp(uint32_t ipaddr)
     {
     unsigned int Counter;
 	static time_t last_error = 0;
--- bandwidthd-2.0.1+cvs20090917.orig/bandwidthd.h
+++ bandwidthd-2.0.1+cvs20090917/bandwidthd.h
@@ -233,7 +233,7 @@ char	 	*HostIp2CharIp(unsigned long ipad
 inline uint32_t IpAddr(unsigned char q1, unsigned char q2, unsigned char q3, unsigned char q4);
 
 // ************ Finds an IP in our IPTable
-inline struct IPData *FindIp(uint32_t ipaddr);
+struct IPData *FindIp(uint32_t ipaddr);
 
 // ************ Writes our IPTable to Disk or to the Ram cache
 void            CommitData(time_t timestamp);

