diff options
author | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-01-06 07:34:43 +0000 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-01-06 07:34:43 +0000 |
commit | 2b9ea8fe926382dfa7623547bd5ae8740493c618 (patch) | |
tree | 3816bb452bbe69cea389e3b10a897b0601786fd3 /cgrulesengd.c | |
parent | 3fc3c9027a4d41b09686ee8298259c99a8c74c4d (diff) | |
download | libcg-2b9ea8fe926382dfa7623547bd5ae8740493c618.tar.gz libcg-2b9ea8fe926382dfa7623547bd5ae8740493c618.tar.xz libcg-2b9ea8fe926382dfa7623547bd5ae8740493c618.zip |
libcgroup: Fix compile warning in cgrulesengd.c
We were getting a warning while compiling on 64 bit platforms,
[root@llm72 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 cast the size to integer and print it.
Cc: Dan Smith <danms@us.ibm.com>
Cc: Steve Olivieri <steve86@wpi.edu>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@301 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'cgrulesengd.c')
-rw-r--r-- | cgrulesengd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cgrulesengd.c b/cgrulesengd.c index 02d0cd5..527184b 100644 --- a/cgrulesengd.c +++ b/cgrulesengd.c @@ -324,7 +324,7 @@ int cgre_create_netlink_socket_process_msg() 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; |