From d528658f9732cb2f8fb0f48b2c1bd65a9f498392 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Sun, 15 Jan 2012 15:16:50 +0000 Subject: [PATCH] Fix prototypes for daemon_send_simple (const char). --- daemons/common/daemon-client.c | 2 +- daemons/common/daemon-client.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemons/common/daemon-client.c b/daemons/common/daemon-client.c index 3f5f0d054..87304585d 100644 --- a/daemons/common/daemon-client.c +++ b/daemons/common/daemon-client.c @@ -57,7 +57,7 @@ void daemon_reply_destroy(daemon_reply r) { dm_config_destroy(r.cft); } -daemon_reply daemon_send_simple(daemon_handle h, char *id, ...) +daemon_reply daemon_send_simple(daemon_handle h, const char *id, ...) { static const daemon_reply err = { .error = ENOMEM, .buffer = NULL, .cft = NULL }; daemon_request rq = { .cft = NULL }; diff --git a/daemons/common/daemon-client.h b/daemons/common/daemon-client.h index c02c71519..8c46da2da 100644 --- a/daemons/common/daemon-client.h +++ b/daemons/common/daemon-client.h @@ -77,7 +77,7 @@ daemon_reply daemon_send(daemon_handle h, daemon_request r); * type (string, integer) of the value is indicated by a character substituted * for ? in %?: d for integer, s for string. */ -daemon_reply daemon_send_simple(daemon_handle h, char *id, ...); +daemon_reply daemon_send_simple(daemon_handle h, const char *id, ...); void daemon_reply_destroy(daemon_reply r); -- 2.43.5