aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-02-16 21:31:22 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-02-16 21:31:22 +0000
commit4e71f1ae3f17144c708cd445ee1de8c4f0af54b3 (patch)
tree22683b902a09150c55882b05cbe6e682c310a7be /gdb
parent92c6bf4d3a42e30e90fb6a54f1b965f99e674eec (diff)
downloadgdb-4e71f1ae3f17144c708cd445ee1de8c4f0af54b3.zip
gdb-4e71f1ae3f17144c708cd445ee1de8c4f0af54b3.tar.gz
gdb-4e71f1ae3f17144c708cd445ee1de8c4f0af54b3.tar.bz2
Rewrite insque/remque support to cast all pointers to PTR.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/dcache.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/gdb/dcache.c b/gdb/dcache.c
index 30d9547..722f731 100644
--- a/gdb/dcache.c
+++ b/gdb/dcache.c
@@ -25,17 +25,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
int remote_dcache = 0;
-#if defined(__linux__)
/* In case the system header files define a prototype for insque and
remque that uses a pointer to a struct qelem, silence the warnings */
-struct qelem;
-#define Insque(a,b) insque((struct qelem *)(a), (struct qelem *)(b))
-#define Remque(a) remque((struct qelem *)(a))
-
-#else
-#define Insque(a,b) insque(a, b)
-#define Remque(a) remque(a)
-#endif
+#define Insque(a,b) insque((PTR)(a), (PTR)(b))
+#define Remque(a) remque((PTR)(a))
/* The data cache records all the data read from the remote machine
since the last time it stopped.