Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 1998 10:29:20 +0200 (SAT)
From:      Graham Wheeler <gram@cdsec.com>
To:        hackers@FreeBSD.ORG
Subject:   Re: Berg coding style (was qpopper trauma)
Message-ID:  <199807300829.KAA00255@cdsec.com>
In-Reply-To: <19980729181418.19519.qmail@iq.org> from "proff@iq.org" at Jul 30, 98 04:14:17 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> > The cucipop code truely has to be seen to be believed......  eg:
> > =======
> >      }
> >    }   
> >   ;{ 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.

-- 
Dr Graham Wheeler                          E-mail: gram@cdsec.com
Citadel Data Security                      Phone:  +27(21)23-6065/6/7
Internet/Intranet Network Specialists      Mobile: +27(83)253-9864
Firewalls/Virtual Private Networks         Fax:    +27(21)24-3656
Data Security Products                     WWW:    http://www.cdsec.com/




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?199807300829.KAA00255>