lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.LNX.1.10.0804081957000.2229@fbirervta.pbzchgretzou.qr>
Date:	Tue, 8 Apr 2008 19:59:02 +0200 (CEST)
From:	Jan Engelhardt <jengelh@...putergmbh.de>
To:	Andy Whitcroft <apw@...dowen.org>
cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1] checkpatch: nested structs


On Tuesday 2008-04-08 19:35, Andy Whitcroft wrote:
>>  # on the line
>> -		if ($line =~ /}(?!(?:,|;|\)))\S/) {
>> +		if ($line =~ /}+(?!(?:,|;|\)))\S/) {
>>  			ERROR("space required after that close brace '}'\n" . $herecurr);
>>  		}
>
>If my eyes are not lying then you have added is a + after the first },
>as this is an unanchored match I would expect that to match in exactly
>the same places.  Hmm, well I guess that it would allow two or more close
>braces to abutt.  Can you give me an example of somethign which would
>require this?

+#define E(a, b, c, d) \
+       {.ip6 = { \
+               __constant_htonl(a), __constant_htonl(b), \
+               __constant_htonl(c), __constant_htonl(d), \
+       }}

static const struct union nf_inet_addr some_address = E(20010db8,0,13,17);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ