Re: [PATCH] obexd: ebook backend: return all TEL attribs from vcard in string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 02, 2010, Marcel Mol wrote:
> +	for (; l; l = g_list_next(l)) {
> +		EVCardAttribute *attrib = l->data;
>  		if (!attrib)
>  			continue;

Add an empty line after variable declarations.

> -
> -		e_vcard_add_attribute(evcard2, e_vcard_attribute_copy(attrib));
> +		const char *name = e_vcard_attribute_get_name(attrib);

plugins/phonebook.c: In function ‘evcard_to_string’:
plugins/phonebook.c:119: error: ISO C90 forbids mixed declarations and code
make[1]: *** [plugins/phonebook.o] Error 1
make: *** [all] Error 2

> +		for (i = 0; attribute_mask[i] != NULL; i++) {
> +			if (!(filter & (1 << i)))
> +				continue;
> +			if (g_strcmp(name, attribute_mask[i]) != 0)

plugins/phonebook.c:123: error: implicit declaration of function ‘g_strcmp’

Probably some missing include. Furthermore, use g_strcmp0 if there's a
risk that one of the inputs might be NULL.

Always compile test with ./bootstrap-configure (in this case
--with-phonebook=ebook) before submitting patches.

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux