Apparently gcc 3.x doesn't like:
const char *restrict addresses[]
But is OK with:
const char **restrict addresses
I've bumped REVISION though I'm not sure there is any need to do
so.
- todd
Index: security/sshguard/Makefile
===================================================================
RCS file: /home/cvs/openbsd/ports/security/sshguard/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- security/sshguard/Makefile 7 Sep 2010 14:13:33 -0000 1.2
+++ security/sshguard/Makefile 20 Sep 2010 18:59:32 -0000
@@ -5,7 +5,7 @@
DISTNAME= sshguard-1.5rc4
CATEGORIES= security
-REVISION= 0
+REVISION= 1
# BSD
PERMIT_PACKAGE_CDROM= Yes
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 20 Sep 2010
18:17:14 -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 20 Sep 2010 18:17:08
-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[]);
+
+
+ /**