mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-10 13:04:23 +01:00
Minor portability tweak for RISC OS
This commit is contained in:
parent
ed32beee67
commit
308efc3e5f
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-14 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* gpgkeys_ldap.c (search_key): Use unsigned int rather than uint
|
||||||
|
for portability.
|
||||||
|
|
||||||
2001-12-04 David Shaw <dshaw@jabberwocky.com>
|
2001-12-04 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* Initial version of gpgkeys_ldap (LDAP keyserver helper) and
|
* Initial version of gpgkeys_ldap (LDAP keyserver helper) and
|
||||||
|
@ -427,7 +427,7 @@ int search_key(LDAP *ldap,char *searchkey)
|
|||||||
vals=ldap_get_values(ldap,each,"pgpkeycreatetime");
|
vals=ldap_get_values(ldap,each,"pgpkeycreatetime");
|
||||||
if(vals!=NULL && strlen(vals[0])==15)
|
if(vals!=NULL && strlen(vals[0])==15)
|
||||||
{
|
{
|
||||||
fprintf(output,"%u:",(uint)ldap2epochtime(vals[0]));
|
fprintf(output,"%u:",(unsigned int)ldap2epochtime(vals[0]));
|
||||||
ldap_value_free(vals);
|
ldap_value_free(vals);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -436,7 +436,7 @@ int search_key(LDAP *ldap,char *searchkey)
|
|||||||
vals=ldap_get_values(ldap,each,"pgpkeyexpiretime");
|
vals=ldap_get_values(ldap,each,"pgpkeyexpiretime");
|
||||||
if(vals!=NULL && strlen(vals[0])==15)
|
if(vals!=NULL && strlen(vals[0])==15)
|
||||||
{
|
{
|
||||||
fprintf(output,"%u:",(uint)ldap2epochtime(vals[0]));
|
fprintf(output,"%u:",(unsigned int)ldap2epochtime(vals[0]));
|
||||||
ldap_value_free(vals);
|
ldap_value_free(vals);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -445,7 +445,7 @@ int search_key(LDAP *ldap,char *searchkey)
|
|||||||
vals=ldap_get_values(ldap,each,"modifytimestamp");
|
vals=ldap_get_values(ldap,each,"modifytimestamp");
|
||||||
if(vals!=NULL && strlen(vals[0])==15)
|
if(vals!=NULL && strlen(vals[0])==15)
|
||||||
{
|
{
|
||||||
fprintf(output,"%u:",(uint)ldap2epochtime(vals[0]));
|
fprintf(output,"%u:",(unsigned int)ldap2epochtime(vals[0]));
|
||||||
ldap_value_free(vals);
|
ldap_value_free(vals);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user