wireguard-tools/src
Jason A. Donenfeld 1b9a83c852 c: specify static array size in function params
The C standard states:

  A declaration of a parameter as ``array of type'' shall be adjusted to ``qualified pointer to
  type'', where the type qualifiers (if any) are those specified within the [ and ] of the
  array type derivation. If the keyword static also appears within the [ and ] of the
  array type derivation, then for each call to the function, the value of the corresponding
  actual argument shall provide access to the first element of an array with at least as many
  elements as specified by the size expression.

By changing void func(int array[4]) to void func(int array[static 4]),
we automatically get the compiler checking argument sizes for us, which
is quite nice.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2016-08-02 02:55:42 +02:00
..
.gitignore Initial commit 2016-06-25 16:48:39 +02:00
base64.c Initial commit 2016-06-25 16:48:39 +02:00
base64.h Initial commit 2016-06-25 16:48:39 +02:00
config.c c: specify static array size in function params 2016-08-02 02:55:42 +02:00
config.h Initial commit 2016-06-25 16:48:39 +02:00
curve25519.c c: specify static array size in function params 2016-08-02 02:55:42 +02:00
curve25519.h c: specify static array size in function params 2016-08-02 02:55:42 +02:00
genkey.c wg: first additions of userspace integration 2016-07-20 22:04:56 +02:00
ipc.c wg: use stream instead of seqpacket 2016-07-22 21:08:25 +02:00
ipc.h wg: Use seqpacket instead of dgram 2016-07-22 20:30:34 +02:00
Makefile wg: add -MP to makefile 2016-07-22 14:58:30 +02:00
pubkey.c wg: improve error reporting and detection 2016-07-03 20:45:48 +02:00
set.c wg: rename kernel to ipc 2016-07-21 11:26:52 +02:00
setconf.c wg: rename kernel to ipc 2016-07-21 11:26:52 +02:00
show.c c: specify static array size in function params 2016-08-02 02:55:42 +02:00
showconf.c wg: rename kernel to ipc 2016-07-21 11:26:52 +02:00
subcommands.h Initial commit 2016-06-25 16:48:39 +02:00
terminal.c Initial commit 2016-06-25 16:48:39 +02:00
terminal.h Initial commit 2016-06-25 16:48:39 +02:00
wg.8 wg: fix numbering in man page 2016-07-16 04:13:55 +02:00
wg.c wg: improve error reporting and detection 2016-07-03 20:45:48 +02:00