DragonFly BSD
DragonFly submit List (threaded) for 2005-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sbin/natd Makefile natd.c


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Thu, 2 Jun 2005 14:24:07 +0200
Mail-followup-to: submit@crater.dragonflybsd.org, maxo@leaf.dragonflybsd.org

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]