mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-15 06:55:30 +08:00
obexd: Allow compilation with -Wsign-compare
This commit is contained in:
parent
329efe609c
commit
ac08e32b2a
@ -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,
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user