Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin Set fd of unused pollfd entries to -1.
details: https://anonhg.NetBSD.org/src/rev/7ef8437c65d8
branches: trunk
changeset: 536687:7ef8437c65d8
user: mycroft <mycroft%NetBSD.org@localhost>
date: Fri Sep 20 19:51:33 2002 +0000
description:
Set fd of unused pollfd entries to -1.
diffstat:
usr.sbin/route6d/route6d.c | 6 +++---
usr.sbin/rtadvd/rtadvd.c | 4 ++--
usr.sbin/rtsold/rtsold.c | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r fa8fd38d6b10 -r 7ef8437c65d8 usr.sbin/route6d/route6d.c
--- a/usr.sbin/route6d/route6d.c Fri Sep 20 19:49:59 2002 +0000
+++ b/usr.sbin/route6d/route6d.c Fri Sep 20 19:51:33 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route6d.c,v 1.38 2002/09/20 13:30:18 mycroft Exp $ */
+/* $NetBSD: route6d.c,v 1.39 2002/09/20 19:51:33 mycroft Exp $ */
/* $KAME: route6d.c,v 1.88 2002/08/21 16:24:25 itojun Exp $ */
/*
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: route6d.c,v 1.38 2002/09/20 13:30:18 mycroft Exp $");
+__RCSID("$NetBSD: route6d.c,v 1.39 2002/09/20 19:51:33 mycroft Exp $");
#endif
#include <stdio.h>
@@ -643,7 +643,7 @@
set[1].fd = rtsock;
set[1].events = POLLIN;
} else
- set[1].events = 0;
+ set[1].fd = -1;
}
#define RIPSIZE(n) \
diff -r fa8fd38d6b10 -r 7ef8437c65d8 usr.sbin/rtadvd/rtadvd.c
--- a/usr.sbin/rtadvd/rtadvd.c Fri Sep 20 19:49:59 2002 +0000
+++ b/usr.sbin/rtadvd/rtadvd.c Fri Sep 20 19:51:33 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtadvd.c,v 1.23 2002/09/20 13:14:32 mycroft Exp $ */
+/* $NetBSD: rtadvd.c,v 1.24 2002/09/20 19:51:34 mycroft Exp $ */
/* $KAME: rtadvd.c,v 1.74 2002/09/08 01:25:17 itojun Exp $ */
/*
@@ -236,7 +236,7 @@
set[1].fd = rtsock;
set[1].events = POLLIN;
} else
- set[1].events = 0;
+ set[1].fd = -1;
signal(SIGTERM, set_die);
signal(SIGUSR1, rtadvd_set_dump_file);
diff -r fa8fd38d6b10 -r 7ef8437c65d8 usr.sbin/rtsold/rtsold.c
--- a/usr.sbin/rtsold/rtsold.c Fri Sep 20 19:49:59 2002 +0000
+++ b/usr.sbin/rtsold/rtsold.c Fri Sep 20 19:51:33 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtsold.c,v 1.18 2002/09/20 13:08:21 mycroft Exp $ */
+/* $NetBSD: rtsold.c,v 1.19 2002/09/20 19:51:35 mycroft Exp $ */
/* $KAME: rtsold.c,v 1.55 2002/09/08 01:26:03 itojun Exp $ */
/*
@@ -217,7 +217,7 @@
set[1].fd = rtsock;
set[1].events = POLLIN;
#else
- set[1].events = 0;
+ set[1].fd = -1;
#endif
/* configuration per interface */
Home |
Main Index |
Thread Index |
Old Index