Menu

#415 incorrect definition ot initialise_table in util_funcs.s

closed
nobody
None
5
2012-11-08
2004-03-24
No

File:
/net-snmp/agent/mibgroup/util_funcs.h

appears to have an incorrect definiton for the function:
mib_table_t Initialise_Table(int, int, RELOAD ,
COMPARE );

where RELOAD and COMPARE are defined as function
data types:

typedef int (RELOAD) (mib_table_t);
typedef int (COMPARE) (const void *, const void *);

I believe this should be a function pointer data type.
Thus initialise_table should look like:
mib_table_t Initialise_Table(int, int, RELOAD *,
COMPARE *);

I have included a patch that updates the function in the
header and source file.

Discussion

  • Mike Slifcak

    Mike Slifcak - 2004-04-20

    Logged In: YES
    user_id=88697

    No patch was included with this bug report.
    To Include an attachment,
    "check to upload..." must be checked, and the full pathname
    to the file to attach must appear after browse is completed.
    The last step: Select the "Submit Changes" button,
    which will read the file from your system and save it
    in the repository.
    Regards, -Mike Slifcak

     
  • Dave Shield

    Dave Shield - 2004-06-18

    Logged In: YES
    user_id=88893

    Thanks for the patch! It has been applied to the 5.0.x and 5.1.x
    code bases and the main development tree, and will appear in
    future releases of the net-snmp package.

     

Log in to post a comment.