From 557fbdf2988ae6c5df20a920fc73b31fe556f4e7 Mon Sep 17 00:00:00 2001 From: phintuka Date: Mon, 28 Feb 2011 13:42:42 +0000 Subject: lirc_start(): device name is const --- xine_frontend_lirc.c | 6 +++--- xine_frontend_lirc.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xine_frontend_lirc.c b/xine_frontend_lirc.c index abf9b628..bdb11c64 100644 --- a/xine_frontend_lirc.c +++ b/xine_frontend_lirc.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend_lirc.c,v 1.25 2010-07-19 13:39:24 phintuka Exp $ + * $Id: xine_frontend_lirc.c,v 1.26 2011-02-28 13:42:42 phintuka Exp $ * */ /* @@ -53,7 +53,7 @@ /* static data */ static pthread_t lirc_thread; -static volatile char *lirc_device_name = NULL; +static volatile const char *lirc_device_name = NULL; static volatile int fd_lirc = -1; static int lirc_repeat_emu = 0; @@ -258,7 +258,7 @@ static void *lirc_receiver_thread(void *fe_gen) return NULL; /* never reached */ } -void lirc_start(struct frontend_s *fe, char *lirc_dev, int repeat_emu) +void lirc_start(struct frontend_s *fe, const char *lirc_dev, int repeat_emu) { if (lirc_dev) { int err; diff --git a/xine_frontend_lirc.h b/xine_frontend_lirc.h index df3972a6..aef08243 100644 --- a/xine_frontend_lirc.h +++ b/xine_frontend_lirc.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend_lirc.h,v 1.3 2008-11-13 22:58:40 phintuka Exp $ + * $Id: xine_frontend_lirc.h,v 1.4 2011-02-28 13:42:42 phintuka Exp $ * */ @@ -13,7 +13,7 @@ struct frontend_s; -void lirc_start(struct frontend_s *fe, char *lirc_dev, int repeat_emu); +void lirc_start(struct frontend_s *fe, const char *lirc_dev, int repeat_emu); void lirc_stop(void); #endif /* XINE_FRONTEND_LIRC_H */ -- cgit v1.2.3