summaryrefslogtreecommitdiff
path: root/sh.func.c
diff options
context:
space:
mode:
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);