[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] nf_ops struct in kentry



Am 20.11.2010, 13:41 Uhr, schrieb Alan Hourihane <alanh@fairlite.co.uk>:

Thanks for doing that Helmut. Slipped through my net.


Wouldn't it be better to write:


-         kernelinfo.nf_ops = nf_init();
-         kentry.vec_mch.nf_ops = nf_init();
+         kentry.vec_mch.nf_ops = kernelinfo.nf_ops = nf_init();

instead? nf_init returns a pointer to a static struct.

--
Helmut Karlowski