X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/5e1b22d763640c4d7a09d07920403d8d491b4410..a241edc87bed49d6bc5dc3c4c99786a921ae7c8a:/stripkey.c diff --git a/stripkey.c b/stripkey.c index cefab42..414c163 100644 --- a/stripkey.c +++ b/stripkey.c @@ -47,7 +47,6 @@ int main(int argc, char** argv) { struct openpgp_signedpacket_list *uid = NULL; struct openpgp_packet_list *sig = NULL; struct openpgp_packet_list *prevsig = NULL; - int result = 0; uint64_t my_key = 0; if( argc > 1 ) @@ -57,11 +56,11 @@ int main(int argc, char** argv) { /* strip each key of everything but its pubkey component, uids and * selfsigs and revsigs on those selfsigs */ - result = read_openpgp_stream( stdin_getchar, NULL, &packets, 0 ); - result = parse_keys( packets, &keys ); + read_openpgp_stream( stdin_getchar, NULL, &packets, 0 ); + parse_keys( packets, &keys ); free_packet_list(packets); packets = NULL; - result = cleankeys( keys ); + cleankeys( keys ); /* Iterate over the keys... */ for( key = keys; key; key = key->next ) { uint64_t keyid = get_keyid( key );