cvs commit: src/sbin/natd Makefile natd.c
Joerg Sonnenberger
joerg at britannica.bec.de
Thu Jun 2 05:25:09 PDT 2005
On Thu, Jun 02, 2005 at 01:35:54PM +0800, Sepherosa Ziehau wrote:
> @@ -289,10 +290,13 @@ int main (int argc, char** argv)
> * Catch signals to manage shutdown and
> * refresh of interface address.
> */
> - siginterrupt(SIGTERM, 1);
> - siginterrupt(SIGHUP, 1);
> - signal (SIGTERM, InitiateShutdown);
> - signal (SIGHUP, RefreshAddr);
> + memset(&sa, 0, sizeof(sa));
Instead of memset use an explicit assignment for the fields please.
Any in the other places too.
Max, can you have a look at make again, there some incorrect uses
I think, where this is not done correctly.
Joerg
More information about the Submit
mailing list