From: Marcus Brinkmann Date: Mon, 23 Dec 2002 23:44:22 +0000 (+0000) Subject: Fix last change. X-Git-Tag: gpgme-1.2.0@1385~726 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8af3e16cc62a4a04f099e2b2a89b42f8f2c85cb7;p=gpgme.git Fix last change. --- diff --git a/trunk/gpgme/key.c b/trunk/gpgme/key.c index 7bacef9..377c714 100644 --- a/trunk/gpgme/key.c +++ b/trunk/gpgme/key.c @@ -299,7 +299,7 @@ otrust_to_string (int otrust) static const char * -validity_to_string (int otrust) +validity_to_string (int validity) { switch (validity) { @@ -954,13 +954,13 @@ gpgme_key_get_string_attr (GpgmeKey key, GpgmeAttr what, return uid ? uid->email_part : NULL; case GPGME_ATTR_COMMENT: - return uid ? uid->comment : NULL; + return uid ? uid->comment_part : NULL; case GPGME_ATTR_VALIDITY: - return uid ? validity_to_string (uid->otrust) : NULL; + return otrust_to_string (key->otrust); case GPGME_ATTR_KEY_CAPS: - return subkey ? capabilities_to_string (k) : NULL; + return subkey ? capabilities_to_string (subkey) : NULL; case GPGME_ATTR_SERIAL: return key->issuer_serial;