On 22 August 2011 17:36, sujata patra <[email protected]> wrote: > Let 's take tcpTable.c ... I do not like the global variable. > Instead is there way way to pass this as argument across functions . > can this two netsnmp_cache *cache, void *vmagic be useful?
You shouldn't touch the 'cache' parameter - this is used by the cache helper to decide whether/when to invoke the load/free functions. But you could certainly use the 'vmagic' parameter to avoid the use of a global variable. That's exactly why this parameter is there. Dave ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
