[ovs-dev] [threads 10/11] sparse: Remove prototypes for thread-unsafe functions from headers.
Ben Pfaff
blp at nicira.com
Thu Jun 20 18:21:05 UTC 2013
Thanks, applied.
On Thu, Jun 20, 2013 at 10:54:44AM -0700, Andy Zhou wrote:
> Looks good.
>
>
> On Wed, Jun 19, 2013 at 1:17 PM, Ben Pfaff <blp at nicira.com> wrote:
>
> > This ensures that attempts to use them cause sparse to complain.
> >
> > Signed-off-by: Ben Pfaff <blp at nicira.com>
> > ---
> > include/sparse/math.h | 5 +----
> > include/sparse/netinet/in.h | 3 +--
> > 2 files changed, 2 insertions(+), 6 deletions(-)
> >
> > diff --git a/include/sparse/math.h b/include/sparse/math.h
> > index f94c527..c2d6156 100644
> > --- a/include/sparse/math.h
> > +++ b/include/sparse/math.h
> > @@ -1,5 +1,5 @@
> > /*
> > - * Copyright (c) 2011 Nicira, Inc.
> > + * Copyright (c) 2011, 2013 Nicira, Inc.
> > *
> > * Licensed under the Apache License, Version 2.0 (the "License");
> > * you may not use this file except in compliance with the License.
> > @@ -108,9 +108,6 @@ double jn(int, double);
> > double ldexp(double, int);
> > float ldexpf(float, int);
> > long double ldexpl(long double, int);
> > -double lgamma(double);
> > -float lgammaf(float);
> > -long double lgammal(long double);
> > long long llrint(double);
> > long long llrintf(float);
> > long long llrintl(long double);
> > diff --git a/include/sparse/netinet/in.h b/include/sparse/netinet/in.h
> > index b3924c3..87d48d6 100644
> > --- a/include/sparse/netinet/in.h
> > +++ b/include/sparse/netinet/in.h
> > @@ -1,5 +1,5 @@
> > /*
> > - * Copyright (c) 2011 Nicira, Inc.
> > + * Copyright (c) 2011, 2013 Nicira, Inc.
> > *
> > * Licensed under the Apache License, Version 2.0 (the "License");
> > * you may not use this file except in compliance with the License.
> > @@ -109,7 +109,6 @@ static inline uint16_t ntohs(ovs_be16 x)
> >
> > in_addr_t inet_addr(const char *);
> > int inet_aton (const char *, struct in_addr *);
> > -char *inet_ntoa(struct in_addr);
> > const char *inet_ntop(int, const void *, char *, socklen_t);
> > int inet_pton(int, const char *, void *);
> >
> > --
> > 1.7.2.5
> >
> > _______________________________________________
> > dev mailing list
> > dev at openvswitch.org
> > http://openvswitch.org/mailman/listinfo/dev
> >
More information about the dev
mailing list