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

From:
Tracey Emery <tracey@traceyemery.net>
Subject:
Re: Clean up got-read-gotconfig/parser.y includes
To:
Christian Weisgerber <naddy@mips.inka.de>
Cc:
gameoftrees@openbsd.org
Date:
Mon, 14 Sep 2020 12:35:55 -0600

Download raw body.

Thread
On Mon, Sep 14, 2020 at 08:15:20PM +0200, Christian Weisgerber wrote:
> 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?

Yeah, I didn't go through and clean those up. My bad.

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

-- 

Tracey Emery