On Sun, Nov 30, 2008 at 8:43 AM, Balbir Singh <[EMAIL PROTECTED]> wrote:
> * Nikanth Karthikesan <[EMAIL PROTECTED]> [2008-11-29 11:03:57]:
>
>> Building libcg on x86_64 @ FOSS.IN
>>
>> cgrulesengd.c:327: warning: format ???%d??? expects type ???int???, but
>> argument 3 has
>> type ???long unsigned int???
>>
>> Signed-off-by: Nikanth Karthikesan <[EMAIL PROTECTED]>
>>
>> ---
>> Index: libcg/cgrulesengd.c
>> ===================================================================
>> --- libcg.orig/cgrulesengd.c
>> +++ libcg/cgrulesengd.c
>> @@ -323,8 +323,8 @@ int cgre_create_netlink_socket_process_m
>> cn_hdr->seq = 0;
>> cn_hdr->ack = 0;
>> cn_hdr->len = sizeof(enum proc_cn_mcast_op);
>> - printf("sending netlink message len=%d, cn_msg len=%d\n",
>> - nl_hdr->nlmsg_len, sizeof(struct cn_msg));
>> + printf("sending netlink message len=%d, cn_msg len=%u\n",
>> + nl_hdr->nlmsg_len, (int)sizeof(struct cn_msg));
>
> I fail to understand this change.. after changing the format type to
> %u, why do you cast sizeof to int?
>
I have a corrected patch sent, where it has been casted to int and not
changed the format to %u. Please see
http://sourceforge.net/mailarchive/message.php?msg_name=20081113085816.613118803%40linux.vnet.ibm.com
> --
> Balbir
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Libcg-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libcg-devel
>
--
Mae West - "I like restraint, if it doesn't go too far."
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel