tlsgate

TLS reverse proxy
git clone git://git.akobets.xyz/tlsgate
Log | Files | Refs | README | LICENSE

commit 2bf091f0d917f4a6e380ba8cbf9225d2f3637144
parent 4d531bdde1c61c4135a35d4fa096db7ededc7626
Author: Artem Kobets <artem@akobets.xyz>
Date:   Thu,  3 Sep 2020 13:51:28 +0300

variable types

Diffstat:
Mmain.c | 2+-
Mserve.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c @@ -142,7 +142,7 @@ main(int argc, char **argv) sigaction(SIGCHLD, &act, NULL); while (1) { - int pid; + pid_t pid; int cfd = -1; if ((cfd = accept(fd, NULL, NULL)) == -1) { diff --git a/serve.c b/serve.c @@ -16,7 +16,7 @@ static int full_tls_write(struct tls *ctx, char *buf, ssize_t len); void serve(struct tls *ctx, int fd) { - int pid; + pid_t pid; pid = fork(); if (pid == -1) { warn("fork");