Browse Source

fix: pointer error statement

master
dnomd343 3 years ago
parent
commit
e632da1690
  1. 2
      gdbus-multi-method-demo/server/server.c

2
gdbus-multi-method-demo/server/server.c

@ -6,7 +6,7 @@ static void* start_main_loop(void* args) {
}
// 接收平方计算
static gboolean receive_num(ComGdbusDemo *object, GDBusMethodInvocation *invocation, const gint *input, gpointer user_data) {
static gboolean receive_num(ComGdbusDemo *object, GDBusMethodInvocation *invocation, const gint input, gpointer user_data) {
const gint num = input;
g_print("Receive num -> %d\n", input);
com_gdbus_demo_complete_send_int(object, invocation, num * num);

Loading…
Cancel
Save