From: Ted Lemon Date: Thu, 22 Feb 2001 06:42:32 +0000 (+0000) Subject: Make header lengths signed rather than unsigned, fix snoop_time(). X-Git-Tag: V3-BETA-2-PATCH-18~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9560d30a7fbf21b140e2a3be52bca3dc299716b8;p=thirdparty%2Fdhcp.git Make header lengths signed rather than unsigned, fix snoop_time(). --- diff --git a/includes/omapip/trace.h b/includes/omapip/trace.h index b80c72e4b..7bc0e5099 100644 --- a/includes/omapip/trace.h +++ b/includes/omapip/trace.h @@ -47,8 +47,8 @@ typedef struct { u_int32_t magic; /* Magic number for trace file. */ u_int32_t version; /* Version of file. */ - u_int32_t hlen; /* Length of this header. */ - u_int32_t phlen; /* Length of packet headers. */ + int32_t hlen; /* Length of this header. */ + int32_t phlen; /* Length of packet headers. */ } tracefile_header_t; /* The trace file is composed of a bunch of trace packets. Each such packet @@ -120,4 +120,4 @@ isc_result_t trace_get_next_packet (trace_type_t **, tracepacket_t *, isc_result_t trace_get_file (trace_type_t *, const char *, unsigned *, char **); isc_result_t trace_get_packet (trace_type_t **, unsigned *, char **); -time_t trace_snoop_time (void); +time_t trace_snoop_time (trace_type_t **);