From: Oliver Chen Date: Wed, 16 Apr 2025 05:28:29 +0000 (+0000) Subject: Add dscp/DSCP for spell check and fix clang-tidy X-Git-Tag: dnsdist-2.0.0-alpha2~57^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a165debaf902f39f40d379cfc2e3262bf97d5048;p=thirdparty%2Fpdns.git Add dscp/DSCP for spell check and fix clang-tidy --- diff --git a/.github/actions/spell-check/allow.txt b/.github/actions/spell-check/allow.txt index a325ba18a0..7c3de4a6c4 100644 --- a/.github/actions/spell-check/allow.txt +++ b/.github/actions/spell-check/allow.txt @@ -864,6 +864,8 @@ drsoa dsa DSANSEC dsc +dscp +DSCP dsdelegation dsdigestalgorithm dses diff --git a/pdns/misc.cc b/pdns/misc.cc index 26335e9203..a8b5694f76 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -1084,8 +1084,8 @@ bool setReuseAddr(int sock) void setDscp(int sock, unsigned short family, uint8_t dscp) { - int val; - unsigned int len; + int val = 0; + unsigned int len = 0; if (dscp == 0 || dscp > 63) { // No DSCP marking