Re: Question about mib2c.create-dataset.conf

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/11/10 X Z <[email protected]>:
> I didn't change anything but I am still getting the same error:
>
> myTable.c:117: error: conflicting types for myTable_free
> myTable.h:16: error: previous declaration of myTable_free was here

OK - I was wrong.
You *do* need to tweak the generated code.

Take the definition of
   int myTable_free(netsnmp_cache * cache, void *vmagic)

in your C file, and change "int" to "void".
Don't touch the code for myTable_load.


One thing still confuses me.
You said that you had generated the code using mib2c.create-dataset.conf,
But this template doesn't include any reference to caching support
(in *any* of the code branches).

I've fixed the two mib2c templates that do use the caching helper
(and had the broken definition of the free routine).
These are mib2c.iterate.conf (5.2ff) and mib2c.table_data.conf (5.3ff)

But mib2c.create-dataset.conf doesn't seem to be affected.
I don't understand how you are seeing this problem if you've
used that template?

Dave

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.