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));
        if (send(sk_nl, nl_hdr, nl_hdr->nlmsg_len, 0) != nl_hdr->nlmsg_len) {
                printf("failed to send proc connector mcast ctl op!\n");
                goto close_and_exit;


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

Reply via email to