Skip to content

Commit

Permalink
pcap: Fix format warnings
Browse files Browse the repository at this point in the history
Related to #65
  • Loading branch information
tore-espressif committed Sep 6, 2022
1 parent a45de9c commit 4691e54
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 227 deletions.
1 change: 0 additions & 1 deletion pcap/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
idf_component_register(SRCS "src/pcap.c"
INCLUDE_DIRS "include")
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
2 changes: 1 addition & 1 deletion pcap/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "1.0.1"
version: "1.0.2"
description: PCAP file writer
url: https://github.com/espressif/idf-extra-components/tree/master/pcap
dependencies:
Expand Down
5 changes: 3 additions & 2 deletions pcap/include/pcap.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -41,7 +41,8 @@ typedef enum {
PCAP_LINK_TYPE_CISCO_HDLC = 104, /*!< Cisco HDLC */
PCAP_LINK_TYPE_802_11 = 105, /*!< 802.11 */
PCAP_LINK_TYPE_BSD_LOOPBACK = 108, /*!< OpenBSD loopback devices(with AF_value in network byte order) */
PCAP_LINK_TYPE_LOCAL_TALK = 114 /*!< LocalTalk */
PCAP_LINK_TYPE_LOCAL_TALK = 114, /*!< LocalTalk */
PCAP_LINK_TYPE_USBPCAP = 249, /*!< USB packets, beginning with a USBPcap header */
} pcap_link_type_t;

/**
Expand Down
Loading

0 comments on commit 4691e54

Please sign in to comment.