summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2012-04-17 16:38:49 (GMT)
committer Jaromil <jaromil@dyne.org>2012-04-17 16:38:49 (GMT)
commit30b84b7a60a25aa218c378efcb47732d4d0926ac (patch)
treebe4b27200d219460240082ec9198a4a15c889ff5
parent9bc2a05171a2b0f184d95c5c345b9b9c6723d32e (diff)
removed some compile warnings
-rw-r--r--src/avremote.cpp2
-rw-r--r--src/avremote.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/avremote.cpp b/src/avremote.cpp
index a8c805e..d66f477 100644
--- a/src/avremote.cpp
+++ b/src/avremote.cpp
@@ -159,7 +159,7 @@ void render_uri_meta(upnp_t *upnp, char *path) {
}
-void render_upnp(upnp_t *upnp, char *action, char *arg) {
+void render_upnp(upnp_t *upnp, const char *action, const char *arg) {
// blank message first
snprintf(upnp->msg, MAX_MSG_SIZE-1,UPNP_MSG_FORMAT,
action, arg, action);
diff --git a/src/avremote.h b/src/avremote.h
index cee5155..ce6f60c 100644
--- a/src/avremote.h
+++ b/src/avremote.h
@@ -112,7 +112,7 @@ SetMute <DesiredMute> (allowed DesiredMute = 0 or 1)
SetVolume <DesiredVolume> (allowed DesiredVolume = 1 to 100)
*/
-void render_upnp(upnp_t *upnp, char *action, char *arg);
+void render_upnp(upnp_t *upnp, const char *action, const char *arg);
void render_uri_meta(upnp_t *upnp, char *path);
int send_upnp(upnp_t *upnp);