>>>>> On Mon, 15 Dec 2008 12:27:02 -0000, "Hindley Nick"
>>>>> <[email protected]> said:
HN> disman/expression/expValueTable.c:66: error: 'link' redeclared as
HN> different kind of symbol
HN> /usr/include/unistd.h:387: error: previous declaration of 'link' was
HN> here
HN> disman/expression/expValueTable.c:66: error: 'link' redeclared as
HN> different kind of symbol
HN> /usr/include/unistd.h:387: error: previous declaration of 'link' was
HN> here
Try the following patch (apply using "patch -p0 < FILE" in the net-snmp
source directory)
Index: agent/mibgroup/disman/expression/expValueTable.c
===================================================================
--- agent/mibgroup/disman/expression/expValueTable.c (revision 17267)
+++ agent/mibgroup/disman/expression/expValueTable.c (working copy)
@@ -63,9 +63,9 @@
unsigned data;
struct s_node *next;
};
-typedef struct s_node link;
-link *operater = NULL;
-link *operand = NULL;
+typedef struct s_node nodelink;
+nodelink *operater = NULL;
+nodelink *operand = NULL;
/*
* variable2 expObjectTable_variables:
@@ -739,10 +739,10 @@
void
-push(link ** stack, unsigned long value)
+push(nodelink ** stack, unsigned long value)
{
- link *newnode;
- newnode = (link *) malloc(sizeof(link));
+ nodelink *newnode;
+ newnode = (nodelink *) malloc(sizeof(nodelink));
if (!newnode) {
printf("\nMemory allocation failure!");
return;
@@ -753,10 +753,10 @@
}
unsigned long
-pop(link ** stack)
+pop(nodelink ** stack)
{
unsigned long value;
- link *top;
+ nodelink *top;
top = *stack;
*stack = (*stack)->next;
value = top->data
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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