C99 structure initialisers and Samba3

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Aug 23 07:03:59 GMT 2006


On Wed, Aug 23, 2006 at 08:47:31AM +1000, tridge at samba.org wrote:
> you're right that this one place isn't a big problem, but lack of C99
> structure initialisers will likely cause more problems in the
> future. For example, the tdb code currently doesn't use C99
> initialisers, but it probably should in order to gain the additional
> code robustness (see for example the io_methods structure in io.c)

Is it really that bad? With type checking on the function
prototypes?

I can see it with lots of the same functions or strings, but
that particular example?

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060823/962077c8/attachment.bin


More information about the samba-technical mailing list