* keyedit.c (menu_clean_uids_from_key, menu_clean_subkeys_from_key),
authorDavid Shaw <dshaw@jabberwocky.com>
Tue, 31 May 2005 19:12:10 +0000 (19:12 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Tue, 31 May 2005 19:12:10 +0000 (19:12 +0000)
trustdb.c (clean_uids_from_key, clean_subkeys_from_key): Fix mingw32 build
warnings.  Noted by Joe Vender.

g10/ChangeLog
g10/keyedit.c
g10/trustdb.c

index 88ec84a..61aa999 100644 (file)
@@ -1,3 +1,10 @@
+2005-05-31  David Shaw  <dshaw@jabberwocky.com>
+
+       * keyedit.c (menu_clean_uids_from_key,
+       menu_clean_subkeys_from_key), trustdb.c (clean_uids_from_key,
+       clean_subkeys_from_key): Fix mingw32 build warnings.  Noted by Joe
+       Vender.
+
 2005-05-31  Werner Koch  <wk@g10code.com>
 
        * keydb.h [!ENABLE_AGENT_SUPPORT]: Define dummy types.
index e0e5782..70c5c5b 100644 (file)
@@ -3196,7 +3196,7 @@ menu_clean_uids_from_key(KBNODE keyblock)
        {
          if(node->pkt->pkttype==PKT_USER_ID && is_deleted_kbnode(node))
            {
-             char *reason;
+             const char *reason;
              char *user=utf8_to_native(node->pkt->pkt.user_id->name,
                                        node->pkt->pkt.user_id->len,0);
 
@@ -3231,7 +3231,7 @@ menu_clean_subkeys_from_key(KBNODE keyblock)
        {
          if(node->pkt->pkttype==PKT_PUBLIC_SUBKEY && is_deleted_kbnode(node))
            {
-             char *reason;
+             const char *reason;
 
              if(node->pkt->pkt.public_key->is_revoked)
                reason=_("revoked");
index 826f83b..d0f6dd8 100644 (file)
@@ -1683,7 +1683,7 @@ clean_uids_from_key(KBNODE keyblock,int noisy)
 
              if(noisy)
                {
-                 char *reason;
+                 const char *reason;
                  char *user=utf8_to_native(uid->name,uid->len,0);
 
                  if(uid->is_revoked)
@@ -1745,7 +1745,7 @@ clean_subkeys_from_key(KBNODE keyblock,int noisy)
 
              if(noisy)
                {
-                 char *reason;
+                 const char *reason;
 
                  if(pk->is_revoked)
                    reason=_("revoked");