Minor code formatting update on MIME/TLS changes.
@@ -2333,13 +2333,14 @@ extract_mimemajor (const char *token) {
/* official IANA registries as per https://www.iana.org/assignments/media-types/ */
- if (
- (lookfor = "application", !strncmp (token, lookfor, 11)) ||
+ if ((lookfor = "application", !strncmp (token, lookfor, 11)) ||
(lookfor = "audio", !strncmp (token, lookfor, 5)) ||
(lookfor = "font", !strncmp (token, lookfor, 4)) ||
- (lookfor = "example", !strncmp (token, lookfor, 7)) || /* unlikely */
+ /* unlikely */
+ (lookfor = "example", !strncmp (token, lookfor, 7)) ||
(lookfor = "image", !strncmp (token, lookfor, 5)) ||
- (lookfor = "message", !strncmp (token, lookfor, 7)) || /* unlikely */
+ /* unlikely */
+ (lookfor = "message", !strncmp (token, lookfor, 7)) ||
(lookfor = "model", !strncmp (token, lookfor, 5)) ||
(lookfor = "multipart", !strncmp (token, lookfor, 9)) ||
(lookfor = "text", !strncmp (token, lookfor, 4)) ||
@@ -2355,8 +2356,7 @@ extract_mimemajor (const char *token) {
* On success, the generated key is assigned to our key data structure.
*/
static int
-gen_mime_type_key (GKeyData * kdata, GLogItem * logitem)
-{
+gen_mime_type_key (GKeyData * kdata, GLogItem * logitem) {
const char *major = NULL;
if (!logitem->mime_type)
@@ -2389,8 +2389,8 @@ extract_tlsmajor (const char *token) {
(lookfor = "TLSv1.1", !strncmp (token, lookfor, 7)) ||
(lookfor = "TLSv1.2", !strncmp (token, lookfor, 7)) ||
(lookfor = "TLSv1.3", !strncmp (token, lookfor, 7)) ||
- (lookfor = "TLSv1", !strncmp (token, lookfor, 5)) // Nope, it's not 1.0
- )
+ // Nope, it's not 1.0
+ (lookfor = "TLSv1", !strncmp (token, lookfor, 5)))
return lookfor;
return NULL;
}
@@ -2401,8 +2401,7 @@ extract_tlsmajor (const char *token) {
* On success, the generated key is assigned to our key data structure.
*/
static int
-gen_tls_type_key (GKeyData * kdata, GLogItem * logitem)
-{
+gen_tls_type_key (GKeyData * kdata, GLogItem * logitem) {
const char *tls;
if (!logitem->tls_type)
