- while (curkey != NULL) {
- if (store_key(curkey)) {
-// puts("Key added successfully.");
- } else {
- printf("Problem adding key '%s'.\n", strerror(errno));
- }
- curkey = curkey->next;
- }
+ printf("Got %d new keys.\n",
+ update_keys(&keys, false));