diff options
author | imura <imura@FreeBSD.org> | 2000-02-13 03:17:21 +0800 |
---|---|---|
committer | imura <imura@FreeBSD.org> | 2000-02-13 03:17:21 +0800 |
commit | 318bc214b1835902ce8aa368c827056c14d9b2dc (patch) | |
tree | 43165bf8162c0cb80f0bb470b8fcefaa97741a7a /net/macipgw | |
parent | 40c1ad8fa8bb7785d6aafcd07873285409e2db55 (diff) | |
download | freebsd-ports-gnome-318bc214b1835902ce8aa368c827056c14d9b2dc.tar.gz freebsd-ports-gnome-318bc214b1835902ce8aa368c827056c14d9b2dc.tar.zst freebsd-ports-gnome-318bc214b1835902ce8aa368c827056c14d9b2dc.zip |
Fix new compiler error in -current.
Submitted by: Alexander Langer <alex@big.endian.de>
All no response from: maintainer
Diffstat (limited to 'net/macipgw')
-rw-r--r-- | net/macipgw/files/patch-aa | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net/macipgw/files/patch-aa b/net/macipgw/files/patch-aa new file mode 100644 index 000000000000..ef2c52f54714 --- /dev/null +++ b/net/macipgw/files/patch-aa @@ -0,0 +1,28 @@ +--- main.c.old Thu Feb 3 15:39:27 2000 ++++ main.c Thu Feb 3 16:52:18 2000 +@@ -160,8 +160,8 @@ + exit (EX_USAGE); + } + + +-void main(int argc, char *argv[]) { ++int main(int argc, char *argv[]) { + struct sigaction sv; + u_long net=0, mask=0, ns=0; + char *zone = "*"; +@@ -209,7 +208,7 @@ + openlog ("macipgw", LOG_PID | gDebug ? LOG_PERROR : 0, LOG_DAEMON); + + sv.sa_handler = die; +- sv.sa_mask = 0; ++ sigemptyset(&(sv.sa_mask)); + sv.sa_flags = 0; + if (sigaction( SIGTERM, &sv, 0 ) < 0 ) { + syslog( LOG_ERR, "sigaction: %m" ); +@@ -243,5 +242,6 @@ + server(); + + die (0); ++ return(0); + } + |