1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## DP: Fix compilation warning (error) on SPARC, where timeval
3
## DP: attributes don't seem to fit "%ld". Also format them as unsigned
6
--- conntrack-tools/src/conntrack.c
7
+++ conntrack-tools/src/conntrack.c
9
if (!(output_mask & _O_XML)) {
11
gettimeofday(&tv, NULL);
12
- printf("[%-8ld.%-6ld]\t", tv.tv_sec, tv.tv_usec);
13
+ printf("[%-8lu.%-6lu]\t", (unsigned long)tv.tv_sec,
14
+ (unsigned long)tv.tv_usec);
16
output_flags |= NFCT_OF_TIME;