From: Dan F. <dfa...@us...> - 2007-10-30 03:23:42
|
Update of /cvsroot/libexif/libexif/libexif/canon In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv5799/libexif/canon Modified Files: mnote-canon-entry.c mnote-canon-tag.c Log Message: Fixed some typos in messages. Made some structs const. Index: mnote-canon-tag.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/canon/mnote-canon-tag.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -p -d -r1.13 -r1.14 --- mnote-canon-tag.c 12 Sep 2007 05:46:23 -0000 1.13 +++ mnote-canon-tag.c 30 Oct 2007 03:23:29 -0000 1.14 @@ -25,7 +25,7 @@ #include <libexif/i18n.h> -static struct { +static const struct { MnoteCanonTag tag; const char *name; const char *title; @@ -45,7 +45,7 @@ static struct { {0, NULL, NULL, NULL} }; -static struct { +static const struct { MnoteCanonTag tag; unsigned int subtag; const char *name; Index: mnote-canon-entry.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/canon/mnote-canon-entry.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -p -d -r1.23 -r1.24 --- mnote-canon-entry.c 12 Sep 2007 05:46:23 -0000 1.23 +++ mnote-canon-entry.c 30 Oct 2007 03:23:29 -0000 1.24 @@ -67,10 +67,10 @@ #define UNDEFINED 0xFF -static struct canon_entry_table_t { +static const struct canon_entry_table_t { unsigned int subtag; ExifShort value; - char *name; + const char *name; } entries_settings_1 [] = { { 0, 1, N_("Macro")}, { 0, 2, N_("Normal")}, @@ -425,7 +425,7 @@ color_information [] = { }; static void -canon_search_table_value (struct canon_entry_table_t table[], +canon_search_table_value (const struct canon_entry_table_t table[], unsigned int t, ExifShort vs, char *val, unsigned int maxlen) { unsigned int j; @@ -447,7 +447,7 @@ canon_search_table_value (struct canon_e } static void -canon_search_table_bitfield (struct canon_entry_table_t table[], +canon_search_table_bitfield (const struct canon_entry_table_t table[], unsigned int t, ExifShort vs, char *val, unsigned int maxlen) { unsigned int j; |