obexd: Allow compilation with -Wsign-compare

This commit is contained in:
Marcel Holtmann 2009-01-30 06:21:17 +01:00
parent 329efe609c
commit ac08e32b2a
4 changed files with 5 additions and 4 deletions

View File

@ -51,7 +51,7 @@ struct send_data {
static void create_callback(struct session_data *session, void *user_data)
{
struct send_data *data = user_data;
int i;
unsigned int i;
if (session->obex == NULL) {
DBusMessage *error = g_dbus_create_error(data->message,

View File

@ -235,7 +235,8 @@ static void search_callback(uint8_t type, uint16_t status,
uint8_t *rsp, size_t size, void *user_data)
{
struct callback_data *callback = user_data;
int scanned, seqlen = 0, bytesleft = size;
unsigned int scanned, bytesleft = size;
int seqlen = 0;
uint8_t dataType, channel = 0;
if (status || type != SDP_SVC_SEARCH_ATTR_RSP)

View File

@ -49,7 +49,7 @@ struct session_data {
size_t buffer_len;
int filled;
ssize_t size;
size_t transferred;
ssize_t transferred;
gchar *filename;
gchar *agent_name;
gchar *agent_path;

View File

@ -738,7 +738,7 @@ static gboolean check_put(obex_t *obex, obex_object_t *obj)
free = buf.f_bsize * buf.f_bavail;
debug("Free space in disk: %lu", free);
if (os->size > free) {
if ((guint64) os->size > free) {
debug("Free disk space not available");
OBEX_ObjectSetRsp(obj, OBEX_RSP_FORBIDDEN, OBEX_RSP_FORBIDDEN);
return FALSE;