Re: [PATCHv4 1/2] daemon: add helper function named_sock_setup
- From
AlexanderS <alexander@sulfrian.net>
- Date
- Aug 30, 2010, 12:46 UTC
- Message-ID
- <20100830144631.23d1a164@laptop.localhost>
- In-Reply-To
- <AANLkTindaa-wDkOMW=BgtNJ+Wmi3xaBo1o_CF7NFH=Qm@mail.gmail.com>
On Mon, 30 Aug 2010 14:12:52 +0200 Erik Faye-Lund <kusmabite@gmail.com> wrote:
> Since serve() isn't a library function, wouldn't it reduce needless > code churn to just make socklist a set of global variables (or just a > global struct)? That way you don't have to pass it around, changing > all those function prototypes.
I don't understand: Even if I make socklist a global structure or something like that, I also have to change all this function prototypes to remove at least the old unused parameters.
> I'm a bit intimidated by this change since I have a rather big > patch-set on top of daemon.c, and I really don't want to resolve a lot > of conflicts. But I guess that's my problem :P