X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fstore-simple.c;h=ad93a05ec11b67a8634d9782143824173da9ccca;hb=1e529ae15592d672b0825fd0e76c7b2b87fd95bb;hp=1b12ab6e6ecb275e0293e6e3ec6d88e91f279378;hpb=041381636f634e493e97981f683e87f092dfaaf8;p=bluesky.git diff --git a/bluesky/store-simple.c b/bluesky/store-simple.c index 1b12ab6..ad93a05 100644 --- a/bluesky/store-simple.c +++ b/bluesky/store-simple.c @@ -249,7 +249,7 @@ static gpointer simplestore_new(const gchar *path) /* TODO: Right now we leak this memory. We should probably clean up in * simplestore_destroy, but it's not a big deal. */ - const gchar *host = "127.0.0.1", *port = "8257"; + const gchar *host = "127.0.0.1", *port = "9541"; if (path != NULL) { gchar **target = g_strsplit(path, ":", 0); if (target[0] != NULL) { @@ -273,7 +273,6 @@ static gpointer simplestore_new(const gchar *path) gai_strerror(res)); return NULL; } - freeaddrinfo(lookup_result); for (struct addrinfo *ai = lookup_result; ai != NULL; ai = ai->ai_next) { printf("flags=%d family=%d socktype=%d proto=%d\n", ai->ai_flags, @@ -287,6 +286,7 @@ static gpointer simplestore_new(const gchar *path) fprintf(stderr, "Warning: Bad address record size!\n"); } } + freeaddrinfo(lookup_result); store->fd_pool = g_queue_new(); store->fd_pool_lock = g_mutex_new();