diff options
author | Matthias Andree <mandree@FreeBSD.org> | 2012-12-03 21:15:24 +0000 |
---|---|---|
committer | Matthias Andree <mandree@FreeBSD.org> | 2012-12-03 21:15:24 +0000 |
commit | bab298086b6626f3518f2e47289359e42e8c7697 (patch) | |
tree | 9e3792a4feb73df0ddfbaab281a5ee307c0b2926 /mail/smtp-gated | |
parent | d3805ba14979900720c716fedfb22d43fda5517b (diff) | |
download | ports-bab298086b6626f3518f2e47289359e42e8c7697.tar.gz ports-bab298086b6626f3518f2e47289359e42e8c7697.zip |
Notes
Diffstat (limited to 'mail/smtp-gated')
-rw-r--r-- | mail/smtp-gated/files/patch-src__util.c | 23 |
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; + |