We were getting a warning while compiling on 64 bit platforms,
[EMAIL PROTECTED] trunk]# make
cc -std=gnu99 -DDEBUG -g -O2 -I. -DPACKAGE_VERSION=0.32 -Wall -o cgrulesengd
cgrulesengd.c \
-L . -lcgroup -lpthread
cgrulesengd.c: In function âcgre_create_netlink_socket_process_msgâ:
cgrulesengd.c:327: warning: format â%dâ expects type âintâ, but
argument 3 has type âlong unsigned intâ
According to Dan Smith, its just an overzealous format check and so
we just case the size to integer and print it.
Cc: Dan Smith <[EMAIL PROTECTED]>
Cc: Steve Olivieri <[EMAIL PROTECTED]>
Signed-off-by: Dhaval Giani <[EMAIL PROTECTED]>
---
cgrulesengd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: trunk/cgrulesengd.c
===================================================================
--- trunk.orig/cgrulesengd.c 2008-11-10 19:20:24.000000000 +0530
+++ trunk/cgrulesengd.c 2008-11-29 11:24:20.000000000 +0530
@@ -324,7 +324,7 @@ int cgre_create_netlink_socket_process_m
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));
+ 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;
--
regards,
Dhaval
-------------------------------------------------------------------------
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