Re: [PATCH obexd] phonebook-tracker: Seek for contact name deeper

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

 



Hi Slawek,

On Mon, Nov 14, 2011, Slawomir Bochenski wrote:
> +	if (reply[COL_FAMILY_NAME][0] == 0 &&
> +			reply[COL_GIVEN_NAME][0] == 0 &&
> +			reply[COL_ADDITIONAL_NAME][0] == 0 &&
> +			reply[COL_NAME_PREFIX][0] == 0 &&
> +			reply[COL_NAME_SUFFIX][0] == 0) {
> +		if (reply[COL_FULL_NAME][0] != 0)

0 is for integers. '\0' is for characters. NULL is for pointers. They
may be the same thing in the resulting object code but for better
readability (directly seeing the type of the variable in question)
please make the distinction in the source code.

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