summaryrefslogtreecommitdiff
path: root/src/xine-utils/utils.c
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2006-06-23 18:24:22 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2006-06-23 18:24:22 +0000
commit51a342b88a4e022f4c08669633293fb7dc4ab0f1 (patch)
tree6eb5a0ecdaf27935e4269443416217b734265d81 /src/xine-utils/utils.c
parent5ba0560dad4cc01ec8560dcf41d2395357b3063b (diff)
downloadxine-lib-51a342b88a4e022f4c08669633293fb7dc4ab0f1.tar.gz
xine-lib-51a342b88a4e022f4c08669633293fb7dc4ab0f1.tar.bz2
Miscellaneous static/const fixups.
Optimise away _xine_buffer_strcat. CVS patchset: 8073 CVS date: 2006/06/23 18:24:22
Diffstat (limited to 'src/xine-utils/utils.c')
-rw-r--r--src/xine-utils/utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xine-utils/utils.c b/src/xine-utils/utils.c
index 477789e3b..cb072e99a 100644
--- a/src/xine-utils/utils.c
+++ b/src/xine-utils/utils.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: utils.c,v 1.44 2006/06/10 00:21:51 dgp85 Exp $
+ * $Id: utils.c,v 1.45 2006/06/23 18:24:22 dsalt Exp $
*
*/
#define _POSIX_PTHREAD_SEMANTICS 1 /* for 5-arg getpwuid_r on solaris */
@@ -70,7 +70,7 @@ typedef struct {
/*
* information about locales used in xine
*/
-static lang_locale_t lang_locales[] = {
+static const lang_locale_t lang_locales[] = {
{ "af_ZA", "iso-8859-1", "iso-8859-1", NULL },
{ "ar_AE", "iso-8859-6", "iso-8859-6", NULL },
{ "ar_BH", "iso-8859-6", "iso-8859-6", NULL },
@@ -488,12 +488,12 @@ void xine_hexdump (const char *buf, int length) {
}
-static const lang_locale_t *_get_first_lang_locale(char *lcal) {
+static const lang_locale_t *_get_first_lang_locale(const char *lcal) {
const lang_locale_t *llocale;
int lang_len;
char *mod;
- if(lcal && strlen(lcal)) {
+ if(lcal && *lcal) {
llocale = &*lang_locales;
if ((mod = strchr(lcal, '@')))