stdbool.h is included everywhere through platform.h


On Tue, Feb 19, 2013 at 12:00 PM, Carlos Manuel Duclos Vergara <
notifications@github.com> wrote:

> In libutils/ip_address.c:
>
> > + * This function parses the source pointer and checks if it conforms to the
> > + * RFC 791.
> > + *
> > + * xxx.xxx.xxx.xxx[:ppppp]
> > + *
> > + * If address is not NULL and the address is IPV4, then the result is copied there.
> > + */
> > +static int IPV4_parser(const char *source, struct IPV4Address *address)
> > +{
> > +    char *p = NULL;
> > +    int octet = 0;
> > +    int port = 0;
> > +    int period_counter = 0;
> > +    int port_counter = 0;
> > +    int char_counter = 0;
> > +    int is_period = 0;
>
> I'd rather avoid including stdbool unless really needed. int seems to fit
> the bill here.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cfengine/core/pull/351/files#r3059961>.
>
>