On Fri, Apr 5, 2019 at 6:49 AM Ed Maste <ema...@freebsd.org> wrote:
>
> On Fri, 5 Apr 2019 at 00:49, Rodney W. Grimes <free...@gndrsh.dnsmgr.net> 
> wrote:
> >
>
> > > +static const u_char dot_name[] = {
> > > +     '.', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ' };
> > > +static const u_char dotdot_name[] = {
> > > +     '.', '.',' ',' ',' ',' ',' ',' ',' ',' ',' ' };
> > > +
>
> They are all either '.' or ' ', the commas are just list separators.
> IMO spaces after the commas would make it slightly easier to see.

Would it make sense to just use the normal string syntax for char
array assignment?

static const u_char dot_name[11] = ".          ";
static const u_char dotdot_name[11] = "..         ";

Seems more clear to me.

Best,
Conrad


_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to