Description: Fix function pointer prototype in OSBase_Common.c
 sse_to_cmpi_datetime_str() declares the local function pointer 'func' with an
 empty parameter list, which gcc-15 (C23 default) treats as taking no
 arguments. Assigning localtime_r/gmtime_r to it and calling func(&sse,
 &bdtime) then become hard errors. Give the pointer its proper prototype.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: no
Last-Update: 2026-09-14

--- sblim-cmpi-base-1.6.4.orig/OSBase_Common.c
+++ sblim-cmpi-base-1.6.4/OSBase_Common.c
@@ -259,7 +259,7 @@ char *sse_to_cmpi_datetime_str(long sse,
   char *dt = malloc(26);
   char *dt2 = malloc(26);
   struct tm bdtime;
-  struct tm *(*func)();
+  struct tm *(*func)(const time_t *, struct tm *);
   int offset = 0;
   
   _OSBASE_TRACE(4,
