Update keystore.c

Fix compiler forbidden warnings