Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 1998 22:57:24 +0000
From:      Niall Smart <rotel@indigo.ie>
To:        Graham Wheeler <gram@cdsec.com>, hackers@FreeBSD.ORG
Subject:   Re: Berg coding style (was qpopper trauma)
Message-ID:  <199807302157.WAA02068@indigo.ie>
In-Reply-To: <199807300829.KAA00255@cdsec.com>; Graham Wheeler <gram@cdsec.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jul 30, 10:29am, Graham Wheeler wrote:
} Subject: Re: Berg coding style (was qpopper trauma)
> > >      }
> > >    }   
> > >   ;{ int namelen=sizeof peername;
> > >      if(getpeername(fileno(sockin),(struct sockaddr*)&peername,&namelen)&&
> > >       !debug&&(errno==ENOTSOCK||errno==EINVAL))
> > >       { int serverfd,curfd; 
> > >         signal(SIGHUP,SIG_IGN);signal(SIGPIPE,SIG_IGN);fclose(stdin);
> > >         fclose(stdout);serverfd=socket(AF_INET,SOCK_STREAM,TCP_PROT);
> > >         peername.sin_family=AF_INET;peername.sin_addr.s_addr=INADDR_ANY;
> > >         peername.sin_port=htons(port);curfd=-1;
> > >         setsockopt(serverfd,SOL_SOCKET,SO_REUSEADDR,&curfd,sizeof curfd);
> > >         if(bind(serverfd,(struct sockaddr*)&peername,sizeof peername))
> > > =======
> 
> All this needs is a bit of whitespace. Run it through GNU indent and it
> will look pretty normal.

I think thats the point, it needs a *lot* of whitespace.

Niall

-- 
Niall Smart, rotel@indigo.ie.
Amaze your friends and annoy your enemies:
echo '#define if(x) if (!(x))' >> /usr/include/stdio.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807302157.WAA02068>