Overview
Comment: | fix idiot typo |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | trunk |
Files: | files | file ages | folders |
SHA3-256: |
a1d7d9de5e60d016ee477a072f819c18 |
User & Date: | lexi on 2025-04-15 10:28:43 |
Other Links: | manifest | tags |
Context
2025-04-15
| ||
10:28 | fix idiot typo Leaf check-in: a1d7d9de5e user: lexi tags: trunk | |
10:22 | kill v4 support; this was never implemented on comint and only causes problems. a thousand tortures to the enemies of v6!! check-in: 5c657640bd user: u0_a153 tags: trunk | |
Changes
Modified wgsync/src/pqp.c from [64ffbf7186] to [720f5ee89f].
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
} pq_array;
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));
*r = (pqp_array) {
.ty = ntohl(pqa -> ty),
|
< |
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
} pq_array; typedef _layout pq_array_elt { uint32_t sz; /* -1 for null */ char body []; } pq_array_elt; 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)); *r = (pqp_array) { .ty = ntohl(pqa -> ty), |
Modified wgsync/src/wgsync.c from [d78cd2aaf3] to [5c0a7396a9].
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 |
char* connstr = getenv("wgsync_conn"); if(connstr == null) _fatal("no connection string supplied"); 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(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); /*"select ns.wgv4::inet, ns.wgv6::inet, h.ref from ns " "right join hostref h " |
| |
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 |
char* connstr = getenv("wgsync_conn");
if(connstr == null) _fatal("no connection string supplied");
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(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);
/*"select ns.wgv4::inet, ns.wgv6::inet, h.ref from ns "
"right join hostref h "
|