Add parentheses ready for future conbtribution
[deliverable/binutils-gdb.git] / sim / arm / bag.c
index ae91ff18ee302add210e61db8846ca0113ac9c87..a09d749b002e074542fe8e98321c69e567985fd5 100644 (file)
@@ -25,6 +25,7 @@
 /********************************************************************/
 
 #include "bag.h"
+#include <stdlib.h>
 
 #define HASH_TABLE_SIZE 256
 #define hash(x) (((x)&0xff)^(((x)>>8)&0xff)^(((x)>>16)&0xff)^(((x)>>24)&0xff))
@@ -65,8 +66,8 @@ killwholelist (Hashentry * p)
     }
 }
 
-void
-removefromlist (Hashentry ** p, long first, long second)
+static void
+removefromlist (Hashentry ** p, long first)
 {
   Hashentry *q;
 
@@ -134,8 +135,8 @@ BAG_killpair_byfirst (long first)
 
   if (BAG_getsecond (first, &second) == NO_SUCH_PAIR)
     return NO_SUCH_PAIR;
-  removefromlist (&lookupbyfirst[hash (first)], first, second);
-  removefromlist (&lookupbysecond[hash (second)], first, second);
+  removefromlist (&lookupbyfirst[hash (first)], first);
+  removefromlist (&lookupbysecond[hash (second)], first);
   return NO_ERROR;
 }
 
@@ -146,8 +147,8 @@ BAG_killpair_bysecond (long second)
 
   if (BAG_getfirst (&first, second) == NO_SUCH_PAIR)
     return NO_SUCH_PAIR;
-  removefromlist (&lookupbyfirst[hash (first)], first, second);
-  removefromlist (&lookupbysecond[hash (second)], first, second);
+  removefromlist (&lookupbyfirst[hash (first)], first);
+  removefromlist (&lookupbysecond[hash (second)], first);
   return NO_ERROR;
 }
 
This page took 0.025086 seconds and 4 git commands to generate.