Преглед на файлове

core: rpc - replaced api member printf with rpl_printf

- clang is throwing error: no member named '__printf_chk' in 'struct rpc'
- reported in FS#457, follwing report on Debian:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755852
Daniel-Constantin Mierla преди 11 години
родител
ревизия
3548620c19
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      rpc.h

+ 2 - 2
rpc.h

@@ -50,7 +50,7 @@ typedef int (*rpc_send_f)(void* ctx);                                      /* Se
 typedef void (*rpc_fault_f)(void* ctx, int code, char* fmt, ...);          /* Signal a failure to the client */
 typedef int (*rpc_add_f)(void* ctx, char* fmt, ...);                       /* Add a new piece of data to the result */
 typedef int (*rpc_scan_f)(void* ctx, char* fmt, ...);                      /* Retrieve request parameters */
-typedef int (*rpc_printf_f)(void* ctx, char* fmt, ...);                    /* Add printf-like formated data to the result set */
+typedef int (*rpc_rpl_printf_f)(void* ctx, char* fmt, ...);                /* Add printf-like formated data to the result set */
 typedef int (*rpc_struct_add_f)(void* ctx, char* fmt, ...);                /* Add fields in a structure */
 typedef int (*rpc_array_add_f)(void* ctx, char* fmt, ...);                 /* Add values in an array */
 typedef int (*rpc_struct_scan_f)(void* ctx, char* fmt, ...);               /* Scan attributes of a structure */
@@ -73,7 +73,7 @@ typedef struct rpc {
 	rpc_send_f send;
 	rpc_add_f add;
 	rpc_scan_f scan;
-	rpc_printf_f printf;
+	rpc_rpl_printf_f rpl_printf;
 	rpc_struct_add_f struct_add;
 	rpc_array_add_f array_add;
 	rpc_struct_scan_f struct_scan;