Re: netfilter kernel modules question

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

 



On Monday 2009-12-14 21:48, Tobias Koeck wrote:
>>
>> You can argue what a data structure is or what it is not; a header
>> file should not include any definitions, only declarations. (And
>> perhaps static-inlines, but that's probably too expert for you at
>> this stage.) Various C-related forums or IRC channels can enlighten
>> you towards the reasoning for that.
>
> 'int a' is declaration (only used in a function it's a definition).

"int a" is always a definition. Inside a function it makes for an 
automatic variable, and outside a function it makes for one with static 
linkage.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux