diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-10-23 15:34:22 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-10-23 15:34:22 -0700 |
commit | 0a5aeb6a0865c8fb2b26b0ec74c72d0bef215d8f (patch) | |
tree | 32635f549185e5a8d73256b7cfb84350cc62ecba /pcap-linux.c | |
parent | 02a9662eb8c21955873280f328934c1c2e971a09 (diff) |
Fix compile errors/warnings.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r-- | pcap-linux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pcap-linux.c b/pcap-linux.c index 7844ce5c..a48ed40b 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -5530,13 +5530,15 @@ iface_ethtool_get_ts_info(pcap_t *handle, char *ebuf) static int iface_ethtool_get_ts_info(pcap_t *handle, char *ebuf _U_) { + int i; + /* * We don't have an ioctl to use to ask what's supported, * so say we support everything. */ handle->tstamp_type_count = NUM_SOF_TIMESTAMPING_TYPES; handle->tstamp_type_list = malloc(NUM_SOF_TIMESTAMPING_TYPES * sizeof(u_int)); - for (i = 0, j = 0; i < NUM_SOF_TIMESTAMPING_TYPES; i++) + for (i = 0; i < NUM_SOF_TIMESTAMPING_TYPES; i++) handle->tstamp_type_list[i] = sof_ts_type_map[i].pcap_tstamp_val; return 0; } |