[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Relax dhclient hostname checks
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Relax dhclient hostname checks
- From: Cedric Berger <cedric_(_at_)_berger_(_dot_)_to>
- Date: Tue, 29 Mar 2005 15:03:49 +0200
Michael Knudsen wrote:
Note that apart from permitting underscores, the diff also attempts to
improve readability of the code.
[...]
+#define hyphenchar(c) ((c) == '-')
+#define uscorechar(c) ((c) == '_')
+#define bslashchar(c) ((c) == '\\')
+#define periodchar(c) ((c) == '.')
+#define asterchar(c) ((c) == '*')
I think that, if you want to improve readability,
you should kill this useless macro soup entirely.
Cedric
Visit your host, monkey.org