From 6b3683e29620c596adce0f8393dae2c6ea1f9fb5 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 5 Feb 2009 22:45:25 +0000 Subject: libfetch-2.22: Allow overriding fetchRestartCalls from signal handlers by making it volatile. --- net/libfetch/Makefile | 4 ++-- net/libfetch/files/fetch.c | 4 ++-- net/libfetch/files/fetch.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'net/libfetch') diff --git a/net/libfetch/Makefile b/net/libfetch/Makefile index 337ed723529..491f1f1d72f 100644 --- a/net/libfetch/Makefile +++ b/net/libfetch/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.24 2009/02/05 16:59:45 joerg Exp $ +# $NetBSD: Makefile,v 1.25 2009/02/05 22:45:25 joerg Exp $ # -DISTNAME= libfetch-2.21 +DISTNAME= libfetch-2.22 CATEGORIES= net MASTER_SITES= # empty DISTFILES= # empty diff --git a/net/libfetch/files/fetch.c b/net/libfetch/files/fetch.c index 519a5b5ef80..4d72a7f5194 100644 --- a/net/libfetch/files/fetch.c +++ b/net/libfetch/files/fetch.c @@ -1,4 +1,4 @@ -/* $NetBSD: fetch.c,v 1.15 2008/11/04 16:14:24 joerg Exp $ */ +/* $NetBSD: fetch.c,v 1.16 2009/02/05 22:45:25 joerg Exp $ */ /*- * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav * Copyright (c) 2008 Joerg Sonnenberger @@ -50,7 +50,7 @@ auth_t fetchAuthMethod; int fetchLastErrCode; char fetchLastErrString[MAXERRSTRING]; int fetchTimeout; -int fetchRestartCalls = 1; +extern int fetchRestartCalls = 1; int fetchDebug; diff --git a/net/libfetch/files/fetch.h b/net/libfetch/files/fetch.h index 6ad8063afbd..c045ddcd9fb 100644 --- a/net/libfetch/files/fetch.h +++ b/net/libfetch/files/fetch.h @@ -1,4 +1,4 @@ -/* $NetBSD: fetch.h,v 1.13 2009/02/05 16:59:45 joerg Exp $ */ +/* $NetBSD: fetch.h,v 1.14 2009/02/05 22:45:25 joerg Exp $ */ /*- * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav * All rights reserved. @@ -170,7 +170,7 @@ extern char fetchLastErrString[MAXERRSTRING]; extern int fetchTimeout; /* Restart interrupted syscalls */ -extern int fetchRestartCalls; +extern volatile int fetchRestartCalls; /* Extra verbosity */ extern int fetchDebug; -- cgit v1.2.3