Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Dec 2015 21:01:45 +1100 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        Garrett Cooper <ngie@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r292013 - head/lib/libc/stdio
Message-ID:  <20151209203618.T1380@besplex.bde.org>
In-Reply-To: <201512090914.tB99EwAs007362@repo.freebsd.org>
References:  <201512090914.tB99EwAs007362@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 9 Dec 2015, Garrett Cooper wrote:

> Log:
> ...
>  Use stdint.h instead of inttypes.h as the latter pollutes namespace more
> ...
> Modified: head/lib/libc/stdio/open_memstream.c
> ==============================================================================
> --- head/lib/libc/stdio/open_memstream.c	Wed Dec  9 08:53:41 2015	(r292012)
> +++ head/lib/libc/stdio/open_memstream.c	Wed Dec  9 09:14:57 2015	(r292013)
> @@ -31,10 +31,10 @@ __FBSDID("$FreeBSD$");
> #include "namespace.h"
> #include <assert.h>
> #include <errno.h>
> +#include <limits.h>
> #ifdef DEBUG
> -#include <inttypes.h>
> +#include <stdint.h>
> #endif
> -#include <limits.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>

Thanks.  It wou;d be noice to fix some other cases of excessive includes.
There aren't many for newer headers like stdint.h and inttypes.h.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151209203618.T1380>