diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-06-05 20:59:20 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-18 00:29:35 -0400 |
commit | 70df2311ee3fc607e7511873d7dade5bd17d593d (patch) | |
tree | b47ade0173eef5c30fbe57cc9ceea204783b2def /net/ipv4/tcp_probe.c | |
parent | 738980ffa658c86bd494ebb242ce8e44aff16a9e (diff) |
[TCP]: Fix compile warning in tcp_probe.c
The suseconds_t et al. are not necessarily any particular type on
every platform, so cast to unsigned long so that we can use one printf
format string and avoid warnings across the board
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_probe.c')
-rw-r--r-- | net/ipv4/tcp_probe.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c index be94d526c7cb..d7d517a3a238 100644 --- a/net/ipv4/tcp_probe.c +++ b/net/ipv4/tcp_probe.c | |||
@@ -68,7 +68,9 @@ static void printl(const char *fmt, ...) | |||
68 | now.tv_usec += 1000000; | 68 | now.tv_usec += 1000000; |
69 | } | 69 | } |
70 | 70 | ||
71 | len = sprintf(tbuf, "%lu.%06lu ", now.tv_sec, now.tv_usec); | 71 | len = sprintf(tbuf, "%lu.%06lu ", |
72 | (unsigned long) now.tv_sec, | ||
73 | (unsigned long) now.tv_usec); | ||
72 | len += vscnprintf(tbuf+len, sizeof(tbuf)-len, fmt, args); | 74 | len += vscnprintf(tbuf+len, sizeof(tbuf)-len, fmt, args); |
73 | va_end(args); | 75 | va_end(args); |
74 | 76 | ||