[PATCH 2/2] Cast cnt to int to stop gcc from complaining.

Victor Lowther victor.lowther at gmail.com
Sun Jun 13 19:07:31 PDT 2010


GCC was complaining about int and ssize_t being differnt types.
Make it quit doing that.

---
 src/linux/up-device-csr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/linux/up-device-csr.c b/src/linux/up-device-csr.c
index c1c88b2..6c06690 100644
--- a/src/linux/up-device-csr.c
+++ b/src/linux/up-device-csr.c
@@ -104,7 +104,7 @@ up_device_csr_find_device (UpDeviceCsr *csr)
 /*		need to depend on > libusb1-1.0.9 for libusb_strerror()
 		egg_warning ("failed to get device list: %s", libusb_strerror (cnt));
  */
-		egg_warning ("failed to get device list: %i", cnt);
+		egg_warning ("failed to get device list: %d", (int)cnt);
 		goto out;
 	}
 	if (devices == NULL) {
-- 
1.7.1



More information about the devkit-devel mailing list