* 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?
--
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