aboutsummaryrefslogtreecommitdiff
path: root/sh.func.c
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2019-10-08 18:20:02 +0000
committerBrooks Davis <brooks@FreeBSD.org>2019-10-08 18:20:02 +0000
commit320f2946781af5deaf568d19136cf96fe2c436dd (patch)
tree355c6156ea44fef5f9233dbbf7b8ecae06287ee7 /sh.func.c
parent48eb25df687d51c9bdb4677c72e08ed3fde1b186 (diff)
downloadsrc-320f2946781af5deaf568d19136cf96fe2c436dd.tar.gz
src-320f2946781af5deaf568d19136cf96fe2c436dd.zip
Import 6.21.00.vendor/tcsh/6.21.00
Notes
Notes: svn path=/vendor/tcsh/dist/; revision=353317 svn path=/vendor/tcsh/6.21.00/; revision=353319; tag=vendor/tcsh/6.21.00
Diffstat (limited to 'sh.func.c')
-rw-r--r--sh.func.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sh.func.c b/sh.func.c
index 501bcaae517e..05f3f20df3bf 100644
--- a/sh.func.c
+++ b/sh.func.c
@@ -1,4 +1,3 @@
-/* $Header: /p/tcsh/cvsroot/tcsh/sh.func.c,v 3.176 2016/10/18 17:26:42 christos Exp $ */
/*
* sh.func.c: csh builtin functions
*/
@@ -31,9 +30,6 @@
* SUCH DAMAGE.
*/
#include "sh.h"
-
-RCSID("$tcsh: sh.func.c,v 3.176 2016/10/18 17:26:42 christos Exp $")
-
#include "ed.h"
#include "tw.h"
#include "tc.h"
@@ -203,7 +199,7 @@ dohup(Char **v, struct command *c)
if (intty)
stderror(ERR_NAME | ERR_TERMINAL);
if (setintr == 0)
- (void) signal(SIGHUP, SIG_DFL);
+ sigset_interrupting(SIGHUP, SIG_DFL);
}
@@ -230,7 +226,7 @@ dofiletest(Char **v, struct command *c)
globbed = v;
cleanup_push(globbed, blk_cleanup);
- while (*(fileptr = v++) != '\0') {
+ while (*(fileptr = v++) != NULL) {
res = filetest(ftest, &fileptr, 0);
cleanup_push(res, xfree);
xprintf("%S", res);