]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - sixdegrees.c
Ensure DB4 backend dbconns memory is initialised to zero
[onak.git] / sixdegrees.c
index d4e55c180cb654877a8a9888e3364b7cd9be3d11..9d2d68d3dfeb8eca4472e05ac30b00e20baf5d82 100644 (file)
@@ -86,12 +86,12 @@ void sixdegrees(uint64_t keyid)
        config.dbbackend->cached_getkeysigs(keyid);
 
        if ((keyinfo = findinhash(keyid)) == NULL) {
        config.dbbackend->cached_getkeysigs(keyid);
 
        if ((keyinfo = findinhash(keyid)) == NULL) {
-               printf("Couldn't find key 0x%llX.\n", keyid);
+               printf("Couldn't find key 0x%" PRIX64 ".\n", keyid);
                return;
        }
 
        uid = config.dbbackend->keyid2uid(keyinfo->keyid);
                return;
        }
 
        uid = config.dbbackend->keyid2uid(keyinfo->keyid);
-       printf("Six degrees for 0x%llX (%s):\n", keyinfo->keyid, uid);
+       printf("Six degrees for 0x%" PRIX64 " (%s):\n", keyinfo->keyid, uid);
        free(uid);
        uid = NULL;
 
        free(uid);
        uid = NULL;