Linux bluetooth development
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] hcid patch (patch 00.13)
Date: Tue, 11 Oct 2005 12:15:02 +0200	[thread overview]
Message-ID: <1129025702.7352.17.camel@blade> (raw)
In-Reply-To: <20051011100057.GA29401@localhost.localdomain>

Hi Johan,

> > I applied the patch, but this can't be the final solution. It will
> > produce weird stuff on 64-bit machines:
> 
> Yeah, I suspected that could cause problems since
> sizeof(int) != sizeof(void *) on those machines. I don't think those
> compiler warnings are dangerous though, since they are probably meant to
> warn about possible loss of data which shouldn't happen to us since our
> values always fit within 2 bytes. I don't have a 64bit machine so I
> can't verify this fix, but I think that sizeof(long) should be the same
> as sizeof(void *) on both 32 and 64 bit machines. If that isn't the
> case, the last resort could be to make some automake makro to check the
> actual size of pointer types and add #defines to the code acordingly.
> 
> Anyway, the attached patch uses long for the pointer<->integer
> typecasts. Let me know if it doesn't work.

I applied your patch and the compiler on my 64-bit machine is much
happier now, but I think that we need to allocate a structure and pass
the pointer to it around instead of some casting tricks. Would you mind
fixing it?

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2005-10-11 10:15 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-06 14:31 [Bluez-devel] hcid patch (patch 00.13) Claudio Takahasi
2005-10-08 15:09 ` Marcel Holtmann
2005-10-08 23:05   ` Claudio Takahasi
2005-10-09 22:20     ` Marcel Holtmann
2005-10-10 19:58       ` Johan Hedberg
2005-10-10 20:49         ` Marcel Holtmann
2005-10-11 10:00           ` Johan Hedberg
2005-10-11 10:15             ` Marcel Holtmann [this message]
2005-10-11 10:42               ` Johan Hedberg
2005-10-11 11:52                 ` Marcel Holtmann
2005-10-11 12:17               ` Steven Singer
2005-10-11 14:49                 ` Johan Hedberg
2005-10-11 17:10                   ` [Bluez-devel] Bluetooth 2.0 dongle Mitja Pufic
2005-10-11 17:43                     ` Marcel Holtmann
2005-10-12 12:37                       ` Mitja Pufic
2005-10-11 17:46                   ` [Bluez-devel] hcid patch (patch 00.13) Marcel Holtmann

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=1129025702.7352.17.camel@blade \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    /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