In message <[email protected]> so spake Matthew Dempsky (matthew):
> On Mon, Sep 20, 2010 at 12:01 PM, Todd C. Miller > <[email protected]> wrote: > > Apparently gcc 3.x doesn't like: > > > > const char *restrict addresses[] > > > > But is OK with: > > > > const char **restrict addresses > > I'm pretty sure you want "const char * restrict * addresses" instead. Since addresses is not an output parameter I think you are correct. That is also accepted by gcc 3.x. - todd Index: security/sshguard/patches/patch-src_fwalls_command_c =================================================================== RCS file: security/sshguard/patches/patch-src_fwalls_command_c diff -N security/sshguard/patches/patch-src_fwalls_command_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ security/sshguard/patches/patch-src_fwalls_command_c 21 Sep 2010 13:53:30 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- src/fwalls/command.c.orig Mon Aug 9 02:44:15 2010 ++++ src/fwalls/command.c Mon Sep 20 14:14:42 2010 +@@ -59,7 +59,7 @@ int fw_block(const char *restrict addr, int addrkind, + return (run_command(COMMAND_BLOCK, addr, addrkind, service) == 0 ? FWALL_OK : FWALL_ERR); + } + +-int fw_block_list(const char *restrict addresses[], int addrkind, const int service_codes[]) { ++int fw_block_list(const char * restrict * addresses, int addrkind, const int service_codes[]) { + /* block each address individually */ + int i; + Index: security/sshguard/patches/patch-src_sshguard_fw_h =================================================================== RCS file: security/sshguard/patches/patch-src_sshguard_fw_h diff -N security/sshguard/patches/patch-src_sshguard_fw_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ security/sshguard/patches/patch-src_sshguard_fw_h 21 Sep 2010 13:53:41 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- src/sshguard_fw.h.orig Mon Aug 9 02:44:15 2010 ++++ src/sshguard_fw.h Mon Sep 20 14:14:49 2010 +@@ -85,7 +85,7 @@ int fw_block(const char *restrict addr, int addrkind, + * + * @return FWALL_OK or FWALL_ERR + */ +-int fw_block_list(const char *restrict addresses[], int addrkind, const int service_codes[]); ++int fw_block_list(const char * restrict * addresses, int addrkind, const int service_codes[]); + + + /**
