X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=sixdegrees.c;h=f7f15200dd0d7b424276e10f9dd90ceb2c02b301;hb=2d53b0b62dd6c230f25c5d66104e6b367390485a;hp=b806c3e50f59a9cb1431e46a646e628a19f3cbde;hpb=83ae316a7b14e55418349e87d1a1942a0627ae14;p=onak.git
diff --git a/sixdegrees.c b/sixdegrees.c
index b806c3e..f7f1520 100644
--- a/sixdegrees.c
+++ b/sixdegrees.c
@@ -13,8 +13,7 @@
* more details.
*
* You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * this program. If not, see .
*/
#include
@@ -137,7 +136,7 @@ int main(int argc, char *argv[])
{
int optchar;
char *configfile = NULL;
- uint64_t keyid = 0x2DA8B985;
+ uint64_t keyid = 0x94FA372B2DA8B985;
struct onak_dbctx *dbctx;
while ((optchar = getopt(argc, argv, "c:")) != -1 ) {
@@ -158,10 +157,10 @@ int main(int argc, char *argv[])
readconfig(configfile);
free(configfile);
initlogthing("sixdegrees", config.logfile);
- dbctx = config.dbinit(true);
+ dbctx = config.dbinit(config.backend, true);
if (dbctx != NULL) {
inithash();
- sixdegrees(dbctx, dbctx->getfullkeyid(dbctx, keyid));
+ sixdegrees(dbctx, keyid);
destroyhash();
dbctx->cleanupdb(dbctx);
} else {