summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-01-02 19:00:10 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-01-02 19:00:10 +0100
commit4d3bae2eb3d5077f390ad3eebffaa39fe760f3ec (patch)
tree6f4b2ba7218160017173b39b3939aac379da75e8
parent18ff4b280f1c6b42657698d462f45cbf522f790a (diff)
downloadxine-lib-4d3bae2eb3d5077f390ad3eebffaa39fe760f3ec.tar.gz
xine-lib-4d3bae2eb3d5077f390ad3eebffaa39fe760f3ec.tar.bz2
Update broadcaster functions to accept constant strings.
-rw-r--r--src/xine-engine/broadcaster.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xine-engine/broadcaster.c b/src/xine-engine/broadcaster.c
index 71d466c3a..2157f0550 100644
--- a/src/xine-engine/broadcaster.c
+++ b/src/xine-engine/broadcaster.c
@@ -136,7 +136,7 @@ static int sock_data_write(xine_t *xine, int socket, void *buf_gen, int len) {
}
static int XINE_FORMAT_PRINTF(3, 4)
-sock_string_write(xine_t *xine, int socket, char *msg, ...) {
+sock_string_write(xine_t *xine, int socket, const char *msg, ...) {
char buf[_BUFSIZ];
va_list args;
@@ -178,7 +178,7 @@ static void broadcaster_data_write(broadcaster_t *this, void *buf, int len) {
}
static void XINE_FORMAT_PRINTF(2, 3)
-broadcaster_string_write(broadcaster_t *this, char *msg, ...) {
+broadcaster_string_write(broadcaster_t *this, const char *msg, ...) {
char buf[_BUFSIZ];
va_list args;
@@ -248,7 +248,7 @@ static void *manager_loop (void *this_gen) {
/*
* receive xine buffers and send them through the broadcaster
*/
-static void send_buf (broadcaster_t *this, char *from, buf_element_t *buf) {
+static void send_buf (broadcaster_t *this, const char *from, buf_element_t *buf) {
int i;
/* ignore END buffers since they would stop the slavery */