Browse code

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 authored on 01/09/2014 17:16:54
Showing 1 changed files
... ...
@@ -50,7 +50,7 @@ typedef int (*rpc_send_f)(void* ctx);                                      /* Se
50 50
 typedef void (*rpc_fault_f)(void* ctx, int code, char* fmt, ...);          /* Signal a failure to the client */
51 51
 typedef int (*rpc_add_f)(void* ctx, char* fmt, ...);                       /* Add a new piece of data to the result */
52 52
 typedef int (*rpc_scan_f)(void* ctx, char* fmt, ...);                      /* Retrieve request parameters */
53
-typedef int (*rpc_printf_f)(void* ctx, char* fmt, ...);                    /* Add printf-like formated data to the result set */
53
+typedef int (*rpc_rpl_printf_f)(void* ctx, char* fmt, ...);                /* Add printf-like formated data to the result set */
54 54
 typedef int (*rpc_struct_add_f)(void* ctx, char* fmt, ...);                /* Add fields in a structure */
55 55
 typedef int (*rpc_array_add_f)(void* ctx, char* fmt, ...);                 /* Add values in an array */
56 56
 typedef int (*rpc_struct_scan_f)(void* ctx, char* fmt, ...);               /* Scan attributes of a structure */
... ...
@@ -73,7 +73,7 @@ typedef struct rpc {
73 73
 	rpc_send_f send;
74 74
 	rpc_add_f add;
75 75
 	rpc_scan_f scan;
76
-	rpc_printf_f printf;
76
+	rpc_rpl_printf_f rpl_printf;
77 77
 	rpc_struct_add_f struct_add;
78 78
 	rpc_array_add_f array_add;
79 79
 	rpc_struct_scan_f struct_scan;