git.samba.org
/
metze
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1abc2eb
)
Fix error when build with clang 3.0
author
Alexis La Goutte
<alexis.lagoutte@gmail.com>
Sat, 10 Aug 2013 21:27:17 +0000
(21:27 -0000)
committer
Alexis La Goutte
<alexis.lagoutte@gmail.com>
Sat, 10 Aug 2013 21:27:17 +0000
(21:27 -0000)
wiretap/lanalyzer.c:643:24: error: implicit conversion loses integer precision: 'const __suseconds_t'
(aka 'const long') to 'gint32' (aka 'int') [-Werror,-Wshorten-64-to-32]
gint32 usec = a->tv_usec;
~~~~ ~~~^~~~~~~
svn path=/trunk/; revision=51249
wiretap/lanalyzer.c
patch
|
blob
|
history
diff --git
a/wiretap/lanalyzer.c
b/wiretap/lanalyzer.c
index 947d0c3da49b16a2ded35bddb2500eb0164ccba5..0da1462c219dbc7015949a3d302949d8c6edab01 100644
(file)
--- a/
wiretap/lanalyzer.c
+++ b/
wiretap/lanalyzer.c
@@
-640,7
+640,7
@@
static void my_timersub(const struct timeval *a,
const struct timeval *b,
struct timeval *c)
{
- gint32 usec = a->tv_usec;
+ gint32 usec =
(gint32)
a->tv_usec;
c->tv_sec = a->tv_sec - b->tv_sec;
if (b->tv_usec > usec) {