diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-02-13 02:47:50 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-02-13 02:47:50 +0000 |
commit | 5795b17d48dcfca897f60932eeafe982ea1b5b00 (patch) | |
tree | 99d8be0222df4c2a219e93dc01b8399637003c77 /packet-radius.c | |
parent | 4f59075d6aa9d238a390b7a6d7b47b23d465c6b0 (diff) | |
download | wireshark-5795b17d48dcfca897f60932eeafe982ea1b5b00.tar.gz |
Cast "timeval" to "long", and print it with "%ld", to handle "time_t"
being an "int" or a "long".
svn path=/trunk/; revision=7133
Diffstat (limited to 'packet-radius.c')
-rw-r--r-- | packet-radius.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-radius.c b/packet-radius.c index e0d2cea883..2919dc5d50 100644 --- a/packet-radius.c +++ b/packet-radius.c @@ -5,7 +5,7 @@ * * RFC 2865, RFC 2866, RFC 2867, RFC 2868, RFC 2869 * - * $Id: packet-radius.c,v 1.75 2003/02/12 00:44:02 guy Exp $ + * $Id: packet-radius.c,v 1.76 2003/02/13 02:47:50 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2728,7 +2728,7 @@ static gchar *rd_value_to_str_2(gchar *dest, const e_avphdr *avph, tvbuff_t *tvb case( RADIUS_TIMESTAMP ): timeval=tvb_get_ntohl(tvb,offset+2); - sprintf(cont,"%d (%s)", timeval, abs_time_secs_to_str(timeval)); + sprintf(cont,"%ld (%s)", (long)timeval, abs_time_secs_to_str(timeval)); break; case( RADIUS_INTEGER4_TAGGED ): intval = tvb_get_ntohl(tvb,offset+2); |