Fixed some typos in messages.
authorDan Fandrich <dan@coneharvesters.com>
Tue, 30 Oct 2007 03:23:29 +0000 (20:23 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 30 Oct 2007 03:23:29 +0000 (20:23 -0700)
Made some structs const.

libexif/canon/mnote-canon-entry.c
libexif/canon/mnote-canon-tag.c
libexif/exif-data.c
libexif/exif-format.c
libexif/exif-ifd.c
libexif/olympus/mnote-olympus-entry.c
libexif/olympus/mnote-olympus-tag.c
libexif/pentax/mnote-pentax-entry.c
libexif/pentax/mnote-pentax-tag.c

index b296589..5ae939a 100644 (file)
 
 #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_entry_table_t table[],
 }
 
 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;
index efdcb0b..4bea697 100644 (file)
@@ -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 8c951b7..0a0c77b 100644 (file)
@@ -318,7 +318,7 @@ if ((i) == ifd) {                           \
 }                                                      \
 if (data->ifd[(i)]->count) {                           \
        exif_log (data->priv->log, EXIF_LOG_CODE_DEBUG, \
-               "ExifData", "Attemt to load IFD "       \
+               "ExifData", "Attempt to load IFD "      \
                "'%s' multiple times detected. "        \
                "Skipping...",                          \
                exif_ifd_get_name (i));                 \
@@ -1120,7 +1120,7 @@ exif_data_get_log (ExifData *data)
        return data->priv->log;
 }
 
-static struct {
+static const struct {
        ExifDataOption option;
        const char *name;
        const char *description;
index c97d71d..5d05b6e 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <stdlib.h>
 
-static struct {
+static const struct {
         ExifFormat format;
        const char *name;
         unsigned char size;
index 96de261..f4ee64c 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <stdlib.h>
 
-static struct {
+static const struct {
        ExifIfd ifd;
        const char *name;
 } ExifIfdTable[] = {
index 7eaad17..9d02a08 100644 (file)
@@ -63,7 +63,7 @@
        }                                                               \
 }
 
-static struct {
+static const struct {
        ExifTag tag;
     ExifFormat fmt;
        struct {
index b3de637..834f825 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <stdlib.h>
 
-static struct {
+static const struct {
        MnoteOlympusTag tag;
        const char *name;
        const char *title;
@@ -43,7 +43,7 @@ static struct {
        {MNOTE_NIKON_TAG_FOCUSMODE,    "FOCUSMODE",   N_("Focus Mode"), ""},
        {MNOTE_NIKON_TAG_FLASHSETTING, "FLASHSETTING",   N_("Flash Setting"), ""},
        {MNOTE_NIKON_TAG_FLASHMODE,    "FLASHMODE",    N_("Flash Mode"), ""},
-       {MNOTE_NIKON_TAG_WHITEBALANCEFINE,"WHITEBALANCEFINE",N_("Whitebalance fine ajustment"), ""},
+       {MNOTE_NIKON_TAG_WHITEBALANCEFINE,"WHITEBALANCEFINE",N_("Whitebalance fine adjustment"), ""},
        {MNOTE_NIKON_TAG_WHITEBALANCERB,  "WHITEBALANCERB", N_("Whitebalance RB"), ""},
        {MNOTE_NIKON_TAG_UNKNOWN_0X000D,  NULL, NULL, NULL},
        {MNOTE_NIKON_TAG_ISOSELECTION,    "ISOSELECTION", N_("Isoselection"), ""},
index 5e547d1..d6fbf51 100644 (file)
@@ -65,7 +65,7 @@
        }                                                               \
 }
 
-static struct {
+static const struct {
        ExifTag tag;
        struct {
                int index;
@@ -263,7 +263,7 @@ static struct {
 };
 
 /* Two-component values */
-static struct {
+static const struct {
        ExifTag tag;
        struct {
                int index1, index2;
index 6a21664..1234049 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <libexif/i18n.h>
 
-static struct {
+static const struct {
        MnotePentaxTag tag;
        const char *name;
        const char *title;