Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 0/1] Type conversion in read and write obex streams
@ 2010-10-15 11:46 Dmitriy Paliy
  2010-10-15 11:46 ` [PATCH] " Dmitriy Paliy
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitriy Paliy @ 2010-10-15 11:46 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

This is to correct previous patch on change of int32_t to ssize_t
types. Printing out is also fixed.

Br,
Dmitriy


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH] Type conversion in read and write obex streams
@ 2010-10-15 10:27 Dmitriy Paliy
  2010-10-15 11:10 ` Johan Hedberg
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitriy Paliy @ 2010-10-15 10:27 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Dmitriy Paliy

Integer types in obex_write_stream and obex_read_stream shell be the
same as those returned by read and write function prototypes of
obex_mime_type_driver.
---
 src/obex.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/obex.c b/src/obex.c
index adfcc95..0a0b6b9 100644
--- a/src/obex.c
+++ b/src/obex.c
@@ -555,7 +555,7 @@ static int obex_read_stream(struct obex_session *os, obex_t *obex,
 						obex_object_t *obj)
 {
 	int size;
-	int32_t len = 0;
+	ssize_t len = 0;
 	const uint8_t *buffer;
 
 	DBG("name=%s type=%s rx_mtu=%d file=%p",
@@ -596,7 +596,7 @@ static int obex_read_stream(struct obex_session *os, obex_t *obex,
 
 write:
 	while (os->pending > 0) {
-		int w;
+		ssize_t w;
 
 		w = os->driver->write(os->object, os->buf + len,
 					os->pending);
@@ -622,7 +622,7 @@ static int obex_write_stream(struct obex_session *os,
 {
 	obex_headerdata_t hd;
 	uint8_t *ptr;
-	int32_t len;
+	ssize_t len;
 	unsigned int flags;
 	uint8_t hi;
 
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-15 11:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-15 11:46 [PATCH 0/1] Type conversion in read and write obex streams Dmitriy Paliy
2010-10-15 11:46 ` [PATCH] " Dmitriy Paliy
2010-10-15 11:52   ` Johan Hedberg
  -- strict thread matches above, loose matches on Subject: below --
2010-10-15 10:27 Dmitriy Paliy
2010-10-15 11:10 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox