From owner-freebsd-hackers Thu Jul 30 15:03:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA04941 for freebsd-hackers-outgoing; Thu, 30 Jul 1998 15:03:06 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from indigo.ie (ts02-107.dublin.indigo.ie [194.125.134.237]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA04883 for ; Thu, 30 Jul 1998 15:02:45 -0700 (PDT) (envelope-from rotel@indigo.ie) Received: (from nsmart@localhost) by indigo.ie (8.8.8/8.8.7) id WAA02068; Thu, 30 Jul 1998 22:57:25 +0100 (IST) (envelope-from rotel@indigo.ie) From: Niall Smart Message-Id: <199807302157.WAA02068@indigo.ie> Date: Thu, 30 Jul 1998 22:57:24 +0000 In-Reply-To: <199807300829.KAA00255@cdsec.com>; Graham Wheeler Reply-To: rotel@indigo.ie X-Files: The truth is out there X-Mailer: Mail User's Shell (7.2.6 beta(3) 11/17/96) To: Graham Wheeler , hackers@FreeBSD.ORG Subject: Re: Berg coding style (was qpopper trauma) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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