zic(8) unneeded header

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

zic(8) unneeded header

Jan Stary
zic.c does not need to include <locale.h>

        Jan


Index: zic.c
===================================================================
RCS file: /cvs/src/usr.sbin/zic/zic.c,v
retrieving revision 1.22
diff -u -p -r1.22 zic.c
--- zic.c 15 Mar 2016 19:50:47 -0000 1.22
+++ zic.c 11 Jan 2019 21:03:39 -0000
@@ -11,7 +11,6 @@
 #include <err.h>
 #include <errno.h>
 #include <limits.h>
-#include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

Reply | Threaded
Open this post in threaded view
|

Re: zic(8) unneeded header

Ingo Schwarze
Hi,

Jan Stary wrote on Fri, Jan 11, 2019 at 10:05:47PM +0100:

> zic.c does not need to include <locale.h>

Correct, committed.
  Ingo


revision 1.23
date: 2019/01/12 15:33:17;  author: schwarze;  state: Exp;  lines: +1 -2;
delete <locale.h>
which was left behind during gettext removal (rev. 1.5) in 2015;
no object change;
patch from Jan Stary <hans at stare dot cz>


> Index: zic.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/zic/zic.c,v
> retrieving revision 1.22
> diff -u -p -r1.22 zic.c
> --- zic.c 15 Mar 2016 19:50:47 -0000 1.22
> +++ zic.c 11 Jan 2019 21:03:39 -0000
> @@ -11,7 +11,6 @@
>  #include <err.h>
>  #include <errno.h>
>  #include <limits.h>
> -#include <locale.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
>