aboutsummaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-13 19:48:42 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-13 19:48:42 +0000
commitc11b407804272b71e5bdd7a2a9181c64c7a594ed (patch)
tree9e9e7762cebbdce72bfe557dfc36c39a7f6a0447 /misc.c
parent5c9505f9dd23cc70dce30d575056d8277bcfdfd3 (diff)
downloadslirp-c11b407804272b71e5bdd7a2a9181c64c7a594ed.zip
slirp-c11b407804272b71e5bdd7a2a9181c64c7a594ed.tar.gz
slirp-c11b407804272b71e5bdd7a2a9181c64c7a594ed.tar.bz2
Fix 64 bit issue in slirp
Signed-off-by: Gleb Natapov <gleb@redhat.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6288 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/misc.c b/misc.c
index 152f416..a816ab2 100644
--- a/misc.c
+++ b/misc.c
@@ -82,34 +82,6 @@ void getouraddr()
our_addr.s_addr = loopback_addr.s_addr;
}
-#if SIZEOF_CHAR_P == 8
-
-struct quehead_32 {
- u_int32_t qh_link;
- u_int32_t qh_rlink;
-};
-
-inline void insque_32(a, b) void *a;
-void *b;
-{
- register struct quehead_32 *element = (struct quehead_32 *)a;
- register struct quehead_32 *head = (struct quehead_32 *)b;
- element->qh_link = head->qh_link;
- head->qh_link = (u_int32_t)element;
- element->qh_rlink = (u_int32_t)head;
- ((struct quehead_32 *)(element->qh_link))->qh_rlink = (u_int32_t)element;
-}
-
-inline void remque_32(a) void *a;
-{
- register struct quehead_32 *element = (struct quehead_32 *)a;
- ((struct quehead_32 *)(element->qh_link))->qh_rlink = element->qh_rlink;
- ((struct quehead_32 *)(element->qh_rlink))->qh_link = element->qh_link;
- element->qh_rlink = 0;
-}
-
-#endif /* SIZEOF_CHAR_P == 8 */
-
struct quehead {
struct quehead *qh_link;
struct quehead *qh_rlink;