2005-02-01 Roland McGrath <roland@redhat.com>
* net.c (sys_getsockopt): Fix a format %ld -> %d.
diff --git a/net.c b/net.c
index 3d0d861..593ccf3 100644
--- a/net.c
+++ b/net.c
@@ -1097,7 +1097,7 @@
if (u.cmsg.cmsg_level == SOL_SOCKET) {
printxval(scmvals, u.cmsg.cmsg_type, "SCM_???");
-
+
if (u.cmsg.cmsg_type == SCM_RIGHTS) {
int *fds = (int *) CMSG_DATA (&u.cmsg);
int first = 1;
@@ -1578,7 +1578,7 @@
&linger) < 0)
break;
tprintf(", {onoff=%d, linger=%d}, "
- "[%ld]",
+ "[%d]",
linger.l_onoff,
linger.l_linger,
len);