summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2009-03-23 13:12:46 +0000
committerDenys Vlasenko <dvlasenk@redhat.com>2009-03-23 13:12:46 +0000
commit132c52a5ccf7b12a44a617f06c97d3f4344a4421 (patch)
tree0632b3f1e41b65008ed6429af9ac1e0ceb0745d4 /net.c
parent39fa62802071eac3ce9aaf70568d75340db85346 (diff)
downloadstrace-132c52a5ccf7b12a44a617f06c97d3f4344a4421.tar.gz
strace-132c52a5ccf7b12a44a617f06c97d3f4344a4421.tar.bz2
strace-132c52a5ccf7b12a44a617f06c97d3f4344a4421.tar.xz
* system.c (sram_alloc_flag): Add L2_SRAM constant.
by Mike Frysinger (vapier AT gentoo.org). (sys_sram_alloc): Fix improperly used %zu: tcp->u_arg is not a size_t, it is a long. * net.c (printcmsghdr): Fix improperly used %zu: struct cmsghdr::cmsg_len is not a size_t.
Diffstat (limited to 'net.c')
-rw-r--r--net.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net.c b/net.c
index 6f38176..9759268 100644
--- a/net.c
+++ b/net.c
@@ -1110,10 +1110,7 @@ static const struct xlat scmvals[] = {
};
static void
-printcmsghdr(tcp, addr, len)
-struct tcb *tcp;
-unsigned long addr;
-unsigned long len;
+printcmsghdr(struct tcb *tcp, unsigned long addr, unsigned long len)
{
struct cmsghdr *cmsg = len < sizeof(struct cmsghdr) ?
NULL : malloc(len);
@@ -1123,7 +1120,7 @@ unsigned long len;
return;
}
- tprintf(", {cmsg_len=%zu, cmsg_level=", cmsg->cmsg_len);
+ tprintf(", {cmsg_len=%u, cmsg_level=", (unsigned) cmsg->cmsg_len);
printxval(socketlayers, cmsg->cmsg_level, "SOL_???");
tprintf(", cmsg_type=");