Subject: Re: bin/20817: inetd doesn't accept tcp,rcvbuf=16384 et al.
To: None <netbsd-bugs@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 03/20/2003 18:20:04
> MALFORMED(arg); \
> val = strtol((arg), &cp0, 10); \
> if (cp0 != NULL) { \
> - if (cp0[1] != '\0') \
> + if (cp0[0] != '\0') \
> + ; \
> + else if (cp0[1] != '\0') \
> MALFORMED((arg)); \
> - if (cp0[0] == 'k') \
> + else if (cp0[0] == 'k') \
> val *= 1024; \
> - if (cp0[0] == 'm') \
> + else if (cp0[0] == 'm') \
> val *= 1024 * 1024; \
> + else \
> + MALFORMED((arg)); \
> } \
> if (val < 1) { \
> syslog(LOG_ERR, "%s: invalid buffer size `%s'", \
It that really a #define ? No wonder we have code bloat...
David
--
David Laight: david@l8s.co.uk