1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-23 07:31:31 +00:00
freebsd/contrib/bsnmp/snmpd
Dimitry Andric b740e02500 bsnmp: make single bit bitfields unsigned to avoid clang 16 warning
Clang 16 introduced a warning about single bit bitfields in structs,
which is triggered by a declaration in bsnmp's snmpd.h:

    contrib/bsnmp/snmpd/trans_lsock.c:271:21: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion]
            peer->input.stream = 1;
                               ^ ~

Signed one-bit bitfields can only have values -1 and 0, but the intent
here is to use the field as a boolean, so make it unsigned.

MFC after:	3 days
2023-04-17 18:26:03 +02:00
..
action.c Rename "index" variable to "idx" since gcc complains that it shadows 2018-01-19 20:33:47 +00:00
BEGEMOT-MIB.txt
BEGEMOT-SNMPD.txt Add IPv6 transport for bsnmp. 2019-04-02 12:50:01 +00:00
bsnmpd.1
config.c
export.c
FOKUS-MIB.txt SNMP: Update the fokus MIB with a new contact info. 2023-04-14 08:28:56 +00:00
main.c Fix bsnmpd(1) crash with ill-formed Discovery message 2021-10-01 14:10:39 +03:00
snmpd.config Merge release 1.14 of bsnmp. 2020-04-01 15:25:16 +00:00
snmpd.h bsnmp: make single bit bitfields unsigned to avoid clang 16 warning 2023-04-17 18:26:03 +02:00
snmpd.sh
snmpmod.3 snmpmod(3): fix typo under the COMMUNITIES section 2020-11-05 21:37:24 +00:00
snmpmod.h Add IPv6 transport for bsnmp. 2019-04-02 12:50:01 +00:00
trans_inet.c Fix immediate crash when snmpd is bound to a specific IP address. 2020-04-20 23:32:49 +00:00
trans_inet.h Add IPv6 transport for bsnmp. 2019-04-02 12:50:01 +00:00
trans_lsock.c Add IPv6 transport for bsnmp. 2019-04-02 12:50:01 +00:00
trans_lsock.h
trans_udp.c Add IPv6 transport for bsnmp. 2019-04-02 12:50:01 +00:00
trans_udp.h
trap.c Correct a port number assignment. 2019-04-01 12:14:45 +00:00
tree.def Follow the standard object definition from RFC2578 2022-12-29 22:02:27 +02:00