From 11e9a816f5d58847a4de8290029967e84fbc7ec1 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 3 Feb 2008 14:36:27 +0200 Subject: [PATCH] const in name_to_language --- src/intl/gettext/libintl.c | 2 +- src/intl/gettext/libintl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intl/gettext/libintl.c b/src/intl/gettext/libintl.c index 4e9409e2d..a6ee396bb 100644 --- a/src/intl/gettext/libintl.c +++ b/src/intl/gettext/libintl.c @@ -147,7 +147,7 @@ language_to_iso639(int language) } int -name_to_language(unsigned char *name) +name_to_language(const unsigned char *name) { int i; diff --git a/src/intl/gettext/libintl.h b/src/intl/gettext/libintl.h index c62b75deb..105ab3fa7 100644 --- a/src/intl/gettext/libintl.h +++ b/src/intl/gettext/libintl.h @@ -170,7 +170,7 @@ struct language { extern struct language languages[]; /* These two calls return 1 (english) if the code/name wasn't found. */ -extern int name_to_language(unsigned char *name); +extern int name_to_language(const unsigned char *name); extern int iso639_to_language(unsigned char *iso639); extern unsigned char *language_to_name(int language);