Index: wgsync/src/pqp.c
==================================================================
--- wgsync/src/pqp.c
+++ wgsync/src/pqp.c
@@ -10,11 +10,10 @@
 typedef _layout pq_array_elt {
 	uint32_t sz; /* -1 for null */
 	char body [];
 } pq_array_elt;
 
-#include <stdio.h>
 struct pqp_array*
 pqp_array_read(const void* pqary) {
 	const pq_array* pqa = pqary;
 	pqp_array* r = calloc(1, sizeof(pqp_array)
 		+ (sizeof(pqp_array_elt) * pqa -> nelts));

Index: wgsync/src/wgsync.c
==================================================================
--- wgsync/src/wgsync.c
+++ wgsync/src/wgsync.c
@@ -453,11 +453,11 @@
 	PGconn* db = PQconnectdb(connstr);
 	if(PQstatus(db) != CONNECTION_OK) 
 		_fatal(PQerrorMessage(db));
 
 	PGresult* q_get_hosts = PQprepare(db, "get_hosts",
-		"select h.ref, array_remove(
+		"select h.ref, array_remove("
 		/* "select h.ref, array_remove(array_agg(wgv4::inet) ||" */
 		                        "array_agg(wgv6::inet), null)"
 			"from ns, hostref h "
 			"where ns.host = h.host and kind = 'pubkey' "
 			" group by h.host, h.ref;", 0, null);