]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
script/dnp3_gen.py: use current clang style
authorJason Ish <jason.ish@oisf.net>
Wed, 26 Mar 2025 18:29:48 +0000 (12:29 -0600)
committerJason Ish <jason.ish@oisf.net>
Thu, 27 Mar 2025 14:31:44 +0000 (08:31 -0600)
scripts/dnp3-gen/dnp3-gen.py

index ccdc122db569a24e22c8226fbd04072cb7150e6d..420dfb1409279ef45c36081aa6df654d17788749 100755 (executable)
@@ -492,7 +492,7 @@ static int DNP3DecodeObjectG{{object.group}}V{{object.variation}}(const uint8_t
         if (prefix < (offset - *len)) {
             goto error;
         }
-        object->{{field.len_field}} = (uint16_t) (prefix - (offset - *len));
+        object->{{field.len_field}} = (uint16_t)(prefix - (offset - *len));
 {% endif %}
         if (object->{{field.len_field}} > 0) {
             if (*len < object->{{field.len_field}}) {
@@ -513,9 +513,9 @@ static int DNP3DecodeObjectG{{object.group}}V{{object.variation}}(const uint8_t
             goto error;
         }
 {% if field.size == 255 %}
-        object->{{field.len_field}} = (uint8_t) (prefix - (offset - *len));
+        object->{{field.len_field}} = (uint8_t)(prefix - (offset - *len));
 {% else %}
-        object->{{field.len_field}} = (uint16_t) (prefix - (offset - *len));
+        object->{{field.len_field}} = (uint16_t)(prefix - (offset - *len));
 {% endif %}
 {% endif %}
         if (object->{{field.len_field}} > 0) {