summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/sig.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-02-23 20:01:20 +0000
committerbrian <brian@FreeBSD.org>1997-02-23 20:01:20 +0000
commit585f595a376a631ea26ac892478724d3cc2c2569 (patch)
tree9cc3e65a8a150cd1cecf2ed47b3e29723ad66985 /usr.sbin/ppp/sig.c
parented53640007af8113205cf24f518695622d7910ff (diff)
downloadFreeBSD-src-585f595a376a631ea26ac892478724d3cc2c2569.zip
FreeBSD-src-585f595a376a631ea26ac892478724d3cc2c2569.tar.gz
Requested by: Elvind Eklund
Remove usage of __sighandler_t as it's not available in 2.1*
Diffstat (limited to 'usr.sbin/ppp/sig.c')
-rw-r--r--usr.sbin/ppp/sig.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ppp/sig.c b/usr.sbin/ppp/sig.c
index 3442538..b55b0d8 100644
--- a/usr.sbin/ppp/sig.c
+++ b/usr.sbin/ppp/sig.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: sig.c,v 1.2 1997/02/22 16:10:51 peter Exp $
*
* TODO:
*
@@ -39,7 +39,7 @@
#define __MAXSIG (32) /* Sizeof u_long: Make life convenient.... */
static u_long caused; /* A mask of pending signals */
-static __sighandler_t *handler[ __MAXSIG ]; /* all start at SIG_DFL */
+static sig_type handler[ __MAXSIG ]; /* all start at SIG_DFL */
/* Record a signal in the "caused" mask */
@@ -55,8 +55,8 @@ static void signal_recorder(int sig) {
call in handle_signal()
*/
-__sighandler_t *pending_signal(int sig,__sighandler_t *fn) {
- __sighandler_t *Result;
+sig_type pending_signal(int sig,sig_type fn) {
+ sig_type Result;
if (sig <= 0 || sig > __MAXSIG) {
/* Oops - we must be a bit out of date (too many sigs ?) */
@@ -66,7 +66,7 @@ __sighandler_t *pending_signal(int sig,__sighandler_t *fn) {
Result = handler[sig-1];
if (fn == SIG_DFL || fn == SIG_IGN) {
- handler[sig-1] = (__sighandler_t *)0;
+ handler[sig-1] = (sig_type)0;
signal(sig,fn);
} else {
handler[sig-1] = fn;
OpenPOWER on IntegriCloud