}
static void
-http_request(size_t id, const char *uri, const char *last_mod, int fd)
+http_request(unsigned int id, const char *uri, const char *last_mod, int fd)
{
struct ibuf *b;
http_response(int fd)
{
struct ibuf *b, *httpbuf = NULL;
- size_t id;
+ unsigned int id;
enum http_result res;
char *lastmod;
int error, fd[2], outfd, http;
int fl = SOCK_STREAM | SOCK_CLOEXEC;
char *uri, *file, *mod;
- size_t req = 0;
+ unsigned int req = 0;
if (argc != 3 && argc != 4) {
fprintf(stderr, "usage: test-http uri file [last-modified]\n");
-/* $OpenBSD: test-rrdp.c,v 1.1 2021/12/01 09:03:19 claudio Exp $ */
+/* $OpenBSD: test-rrdp.c,v 1.2 2021/12/24 09:21:41 claudio Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
struct rrdp {
TAILQ_ENTRY(rrdp) entry;
- size_t id;
+ unsigned int id;
char *notifyuri;
char *local;
char *last_mod;
}
static struct rrdp *
-rrdp_new(size_t id, char *local, char *notify, char *session_id,
+rrdp_new(unsigned int id, char *local, char *notify, char *session_id,
long long serial, char *last_mod)
{
struct rrdp *s;
rrdp_finished(struct rrdp *s)
{
XML_Parser p = s->parser;
- size_t id = s->id;
+ unsigned int id = s->id;
if (s->state & RRDP_STATE_PARSE_ERROR)
return;