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

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: sort/remove includes in got-notify-email
To:
Omar Polo <op@omarpolo.com>
Cc:
gameoftrees@openbsd.org
Date:
Tue, 23 Apr 2024 10:03:42 +0200

Download raw body.

Thread
On Tue, Apr 23, 2024 at 09:58:57AM +0200, Omar Polo wrote:
> triggers my OCD :)
> 
> sort and remove getopt.h (thankfully we don't use long options here :p)

sure

> diff /home/op/w/got
> commit - 04a87797cb37c4787fdc83040ba75f0ddd60e46d
> path + /home/op/w/got
> blob - 16f1d741593d53dc9c972d53a4536edabae0301a
> file + gotd/libexec/got-notify-email/got-notify-email.c
> --- gotd/libexec/got-notify-email/got-notify-email.c
> +++ gotd/libexec/got-notify-email/got-notify-email.c
> @@ -18,18 +18,17 @@
>  #include <sys/socket.h>
>  
>  #include <ctype.h>
> +#include <err.h>
>  #include <errno.h>
> +#include <netdb.h>
>  #include <poll.h>
> +#include <pwd.h>
> +#include <stdarg.h>
> +#include <stdint.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> -#include <stdarg.h>
> -#include <stdint.h>
>  #include <syslog.h>
> -#include <getopt.h>
> -#include <err.h>
> -#include <pwd.h>
> -#include <netdb.h>
>  #include <time.h>
>  #include <unistd.h>
>  
> 
>