Date: Tue, 19 Oct 2010 12:33:30 +0100 (BST) From: Iain Hibbert <plunky@rya-online.net> To: freebsd-bluetooth@freebsd.org Subject: obexapp strict type Message-ID: <1287488010.638190.1717.nullmailer@galant.ukfsn.org>
next in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1445832663-1287488010=:1444 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi, obexapp uses 'int' for return of read/write functions, but they return ssize_t which may not be the same.. also int for buffer size which should be size_t. patch attached fixes this to avoid some complier warnings.. regards, iain --0-1445832663-1287488010=:1444 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=size.diff Content-Transfer-Encoding: BASE64 Content-ID: <alpine.NEB.2.00.1010191233300.1444@localhost.> Content-Description: Content-Disposition: attachment; filename=size.diff LS0tIHV0aWwuYy5vcmlnCTIwMTAtMDEtMDggMTg6MzE6MjIuMDAwMDAwMDAw ICswMDAwDQorKysgdXRpbC5jCTIwMTAtMDEtMDggMTk6NTE6MDIuMDAwMDAw MDAwICswMDAwDQpAQCAtMjg4LDE0ICsyODgsMTQgQEAgb2JleGFwcF91dGls X2xvY2FsZV90b191dGYxNmJlKGNoYXIgY29ucw0KICAqIFJlYWQgdXB0byBi dWZmZXJfbGVuZ3RoIGJ5dGVzIGludG8gdGhlIGJ1ZmZlciBmcm9tIHRoZSBm aWxlIGRlc2NyaXB0b3IgZmQNCiAgKi8NCiANCi1pbnQNCi1vYmV4YXBwX3V0 aWxfcmVhZChpbnQgZmQsIHVpbnQ4X3QgKmJ1ZmZlciwgaW50IGJ1ZmZlcl9s ZW5ndGgpDQorc3NpemVfdA0KK29iZXhhcHBfdXRpbF9yZWFkKGludCBmZCwg dWludDhfdCAqYnVmZmVyLCBzaXplX3QgYnVmZmVyX2xlbmd0aCkNCiB7DQot CWludAlsZW5ndGg7DQorCXNzaXplX3QgbGVuZ3RoOw0KIA0KIGFnYWluOg0K IAlsZW5ndGggPSByZWFkKGZkL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i ZXhhcHBfdXRpbF9sb2NhbGVfdG9fdXRmOChjaGFyIGNvbg0KIGludCBvYmV4 YXBwX3V0aWxfbG9jYWxlX2Zyb21fdXRmMTZiZSh1aW50OF90IGNvbnN0ICpz cmMsIHNpemVfdCBzcmNsZW4sIGNoYXIgKmRzdCwgc2l6ZV90IGRzdGxlbik7 DQogaW50IG9iZXhhcHBfdXRpbF9sb2NhbGVfdG9fdXRmMTZiZShjaGFyIGNv bnN0ICpzcmMsIHNpemVfdCBzcmNsZW4sIHVpbnQ4X3QgKmRzdCwgc2l6ZV90 IGRzdGxlbik7DQogDQotaW50IG9iZXhhcHBfdXRpbF9yZWFkKGludCBmZCwg dWludDhfdCAqYnVmZmVyLCBpbnQgYnVmZmVyX2xlbmd0aCk7DQotaW50IG9i ZXhhcHBfdXRpbF93cml0ZShpbnQgZmQsIHVpbnQ4X3QgY29uc3QgKmJ1ZmZl ciwgaW50IGJ1ZmZlcl9sZW5ndGgpOw0KK3NzaXplX3Qgb2JleGFwcF91dGls X3JlYWQoaW50IGZkLCB1aW50OF90ICpidWZmZXIsIHNpemVfdCBidWZmZXJf bGVuZ3RoKTsNCitzc2l6ZV90IG9iZXhhcHBfdXRpbF93cml0ZShpbnQgZmQs IHVpbnQ4X3QgY29uc3QgKmJ1ZmZlciwgc2l6ZV90IGJ1ZmZlcl9sZW5ndGgp Ow0KIGludCBvYmV4YXBwX3V0aWxfZGlzcGxheV9mb2xkZXJfbGlzdGluZyhj aGFyIGNvbnN0ICpscyk7DQogY2hhciAqCW9iZXhhcHBfdXRpbF9nZXRzKGNo YXIgY29uc3QgKnByb21wdCwgY2hhciAqYnVmZmVyLCBpbnQgYnVmZmVyX3Np emUpOw0KIGNoYXIgKglvYmV4YXBwX3V0aWxfc3Ryc2VwKGNoYXIgKipzcCwg Y2hhciBjb25zdCAqZGVsaW0pOw0K --0-1445832663-1287488010=:1444--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1287488010.638190.1717.nullmailer>