summaryrefslogtreecommitdiff
path: root/pcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap.c')
-rw-r--r--pcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap.c b/pcap.c
index 201bba22..2561b7d7 100644
--- a/pcap.c
+++ b/pcap.c
@@ -3484,9 +3484,9 @@ pcap_fileno(pcap_t *p)
* routine (and be prepared for it to return
* INVALID_HANDLE_VALUE).
*/
-DIAG_OFF_NARROWING
+DIAG_OFF_PTR_TO_INT
return ((int)(DWORD)p->handle);
-DIAG_ON_NARROWING
+DIAG_ON_PTR_TO_INT
} else
return (PCAP_ERROR);
}