Description: Fix link error of update_posmap caused by C99 inline semantics
 padding.c defined update_posmap as a non-static inline function without an
 extern declaration. Under the default C99+/gnu17 inline semantics the inline
 definition emits no external symbol, so the linker fails with
 "undefined reference to update_posmap". The function is only used inside
 padding.c, so make it static inline.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-09-05

--- samtools-legacy-0.1.19+dfsg.orig/padding.c
+++ samtools-legacy-0.1.19+dfsg/padding.c
@@ -138,7 +138,7 @@ int get_unpadded_len(faidx_t *fai, char
 	return bases;
 }
 
-inline int * update_posmap(int *posmap, kstring_t ref)
+static inline int * update_posmap(int *posmap, kstring_t ref)
 {
 	int i, k;
 	posmap = realloc(posmap, ref.m * sizeof(int));

