summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vppinfra/pcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/pcap.c b/src/vppinfra/pcap.c
index 23bb463835b..bdaa861db3f 100644
--- a/src/vppinfra/pcap.c
+++ b/src/vppinfra/pcap.c
@@ -137,7 +137,7 @@ pcap_write (pcap_main_t * pm)
while (vec_len (pm->pcap_data) > pm->n_pcap_data_written)
{
- int n = vec_len (pm->pcap_data) - pm->n_pcap_data_written;
+ i64 n = vec_len (pm->pcap_data) - pm->n_pcap_data_written;
n = write (pm->file_descriptor,
vec_elt_at_index (pm->pcap_data, pm->n_pcap_data_written),