aboutsummaryrefslogtreecommitdiff
path: root/mail/smtp-gated
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2012-12-03 21:15:24 +0000
committerMatthias Andree <mandree@FreeBSD.org>2012-12-03 21:15:24 +0000
commitbab298086b6626f3518f2e47289359e42e8c7697 (patch)
tree9e3792a4feb73df0ddfbaab281a5ee307c0b2926 /mail/smtp-gated
parentd3805ba14979900720c716fedfb22d43fda5517b (diff)
downloadports-bab298086b6626f3518f2e47289359e42e8c7697.tar.gz
ports-bab298086b6626f3518f2e47289359e42e8c7697.zip
Notes
Diffstat (limited to 'mail/smtp-gated')
-rw-r--r--mail/smtp-gated/files/patch-src__util.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/mail/smtp-gated/files/patch-src__util.c b/mail/smtp-gated/files/patch-src__util.c
new file mode 100644
index 000000000000..073c72b8d9a0
--- /dev/null
+++ b/mail/smtp-gated/files/patch-src__util.c
@@ -0,0 +1,23 @@
+--- ./src/util.c.orig 2012-12-03 22:11:37.000000000 +0100
++++ ./src/util.c 2012-12-03 22:11:44.000000000 +0100
+@@ -966,16 +966,16 @@
+ } /* set_rlimit() */
+ #endif
+
+-/* netmask(28) => 255.255.255.240 (network order) */
+-u_int32_t netmask(int m)
+-{
+- inline u_int32_t power(u_int32_t x, u_int32_t y)
++static inline u_int32_t power(u_int32_t x, u_int32_t y)
+ {
+ u_int32_t r = 1;
+ while (y--) r*=x;
+ return r;
+ }
+
++/* netmask(28) => 255.255.255.240 (network order) */
++u_int32_t netmask(int m)
++{
+ if (m < 0)
+ m = 0;
+