From: Christian MICHON <christian.michon@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Can you commit the pcnet patch ?
Date: Wed, 20 Jul 2005 17:19:04 +0200 [thread overview]
Message-ID: <46d6db6605072008197166ffbb@mail.gmail.com> (raw)
In-Reply-To: <46d6db6605072007454a2024d0@mail.gmail.com>
When I try to replace bcmp (inexistant in mingw32) with memcmp
inside pcnet.h, like this:
int result = (!CSR_DRCVPA(s)) && !bcmp(hdr->ether_dhost, padr, 6);
into
int result = (!CSR_DRCVPA(s)) && !bcmp(hdr->ether_dhost, padr, 6);
I get the following error:
In file included from C:/dev/msys/1.0/home/xian/qemu-0.7.0/hw/pcnet.c:64:
C:/dev/msys/1.0/home/xian/qemu-0.7.0/hw/pcnet.h: In function `padr_match':
C:/dev/msys/1.0/home/xian/qemu-0.7.0/hw/pcnet.h:531: error:
dereferencing pointer to incomplete type
anyone having a fix. I'm quite puzzled by the gcc error message.
Thx
Christian
=============================================
static inline int padr_match(PCNetState *s, const uint8_t *buf, int size)
{
struct ether_header *hdr = (void *)buf;
uint8_t padr[6] = {
s->csr[12] & 0xff, s->csr[12] >> 8,
s->csr[13] & 0xff, s->csr[13] >> 8,
s->csr[14] & 0xff, s->csr[14] >> 8
};
int result = (!CSR_DRCVPA(s)) && !memcmp(hdr->ether_dhost, padr, 6);
for better understanding of the faulty piece of code
next prev parent reply other threads:[~2005-07-20 15:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-20 10:32 [Qemu-devel] Can you commit the pcnet patch ? Ludovic Drolez
2005-07-20 12:37 ` Paul Brook
2005-07-20 12:48 ` Christian MICHON
2005-07-21 15:32 ` Ludovic Drolez
2005-07-20 12:56 ` Ludovic Drolez
2005-07-20 14:26 ` Christian MICHON
2005-07-20 14:45 ` Christian MICHON
2005-07-20 15:19 ` Christian MICHON [this message]
2005-07-20 15:29 ` Paul Brook
2005-07-20 15:37 ` Filip Navara
2005-07-21 11:33 ` Christian MICHON
2005-07-21 16:43 ` Filip Navara
2005-07-21 20:21 ` Filip Navara
2005-07-21 20:54 ` Christian MICHON
2005-07-21 7:29 ` Lars Munch
2005-07-21 13:19 ` Paul Brook
2005-07-21 13:49 ` Christian MICHON
2005-07-21 19:10 ` Antony T Curtis
2005-07-21 21:14 ` Fabrice Bellard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46d6db6605072008197166ffbb@mail.gmail.com \
--to=christian.michon@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).