allow this to build with gcc3
This commit is contained in:
parent
dc7b227db3
commit
7f797d8a3f
15
security/sshguard/patches/patch-src_fwalls_command_c
Normal file
15
security/sshguard/patches/patch-src_fwalls_command_c
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-src_fwalls_command_c,v 1.1 2011/09/09 20:13:28 naddy Exp $
|
||||
|
||||
Allow building with gcc3.
|
||||
|
||||
--- src/fwalls/command.c.orig Fri Sep 9 22:07:56 2011
|
||||
+++ src/fwalls/command.c Fri Sep 9 22:08:12 2011
|
||||
@@ -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;
|
||||
|
15
security/sshguard/patches/patch-src_sshguard_fw_h
Normal file
15
security/sshguard/patches/patch-src_sshguard_fw_h
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-src_sshguard_fw_h,v 1.1 2011/09/09 20:13:28 naddy Exp $
|
||||
|
||||
Allow building with gcc3.
|
||||
|
||||
--- src/sshguard_fw.h.orig Fri Sep 9 22:07:03 2011
|
||||
+++ src/sshguard_fw.h Fri Sep 9 22:07:20 2011
|
||||
@@ -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[]);
|
||||
|
||||
|
||||
/**
|
Loading…
Reference in New Issue
Block a user