Re: [Nbd] [PATCH] nbd-server: replace msg2(), msg3() and msg4() with variadic msg()
- To: Tuomas Jorma Juhani Räsänen <tuomasjjrasanen@...1261...>
- Cc: nbd-general@lists.sourceforge.net
- Subject: Re: [Nbd] [PATCH] nbd-server: replace msg2(), msg3() and msg4() with variadic msg()
- From: Wouter Verhelst <w@...112...>
- Date: Sun, 30 Dec 2012 03:16:15 +0100
- Message-id: <20121230021615.GA18495@...3...>
- In-reply-to: <20121229202157.GA21127@...1259...>
- References: <20121228213300.GA20523@...1259...> <20121229115236.GL30316@...3...> <20121229202157.GA21127@...1259...>
On Sat, Dec 29, 2012 at 10:21:57PM +0200, Tuomas Jorma Juhani Räsänen wrote:
> On Sat, Dec 29, 2012 at 12:52:36PM +0100, Wouter Verhelst wrote:
> >
> > I've applied this too, but after I did so and pushed it I started
> > thinking that, because it really only calls one function, it might be
> > better, for now, to use a C99-style variadic macro instead. I've changed
> > it in that way.
> >
>
> True. I considered variadic macros, too, for a few seconds. But then I
> thought that macros would not be that much more effective and I didn't
> know which you'd prefer,
Well, the code already has a variadic macro 4 lines lower, that could've given
you a hint... ;-)
> so I decided to offer the "safer" one first. But yes, macros are even simpler
> in this case, so good call!
>
> You are quite fast/efficient in applying patches, nice! =)
Only when they're all this simple and easy to review. If you start sending me
larger patches, I might require more time ;-)
--
Copyshops should do vouchers. So that next time some bureaucracy requires you
to mail a form in triplicate, you can mail it just once, add a voucher, and
save on postage.
Reply to: