svn commit: r292013 - head/lib/libc/stdio

Bruce Evans brde at optusnet.com.au
Wed Dec 9 10:01:49 UTC 2015


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


More information about the svn-src-head mailing list