"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Clean up got-read-gotconfig/parser.y includes
To:
gameoftrees@openbsd.org
Date:
Mon, 14 Sep 2020 20:15:20 +0200

Download raw body.

Thread
Remove unused #includes from the new got-read-gotconfig/parse.y.

I guess these were copied along with the parser.y skeleton.  FreeBSD
didn't like event.h, which caused me to take a closer look.

ok?

diff e12e0e217d39c07988378fa6c8f492892a4979be /home/naddy/got
blob - 4bba6446d36f1aeb5246780345b255b6a26153e7
file + libexec/got-read-gotconfig/parse.y
--- libexec/got-read-gotconfig/parse.y
+++ libexec/got-read-gotconfig/parse.y
@@ -24,27 +24,17 @@
 %{
 #include <sys/types.h>
 #include <sys/queue.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
 
-#include <netinet/in.h>
-
-#include <arpa/inet.h>
-
 #include <netdb.h>
 
 #include <ctype.h>
 #include <err.h>
 #include <errno.h>
-#include <event.h>
-#include <ifaddrs.h>
-#include <imsg.h>
 #include <limits.h>
 #include <stdarg.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
-#include <syslog.h>
-#include <unistd.h>
 
 #include "got_error.h"
 #include "gotconfig.h"
-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de