summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/utils.c b/utils.c
index 6ab303c..67b146b 100644
--- a/utils.c
+++ b/utils.c
@@ -82,7 +82,7 @@ extern void writeall(int fd, char *buf, SIZE_T remain) {
slow = FALSE;
}
slow = FALSE;
- SIGCHK;
+ sigchk();
}
extern int rc_read(int fd, char *buf, SIZE_T n) {
@@ -101,18 +101,9 @@ extern int rc_read(int fd, char *buf, SIZE_T n) {
errno = EINTR;
r = -1;
}
- SIGCHK;
return r;
}
-/* clear out z bytes from character string s */
-
-extern char *clear(char *s, SIZE_T z) {
- while (z != 0)
- s[--z] = 0;
- return s;
-}
-
/* duplicate a fd and close the old one only if necessary */
extern int mvfd(int i, int j) {