summaryrefslogtreecommitdiff
path: root/bin/cp/cp.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cp/cp.c')
-rw-r--r--bin/cp/cp.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c
index 2f4fab1..4f5d960 100644
--- a/bin/cp/cp.c
+++ b/bin/cp/cp.c
@@ -32,21 +32,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-#ifndef lint
-__COPYRIGHT(
-"@(#) Copyright (c) 1988, 1993, 1994\
- The Regents of the University of California. All rights reserved.");
-#endif /* not lint */
-
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)cp.c 8.5 (Berkeley) 4/29/95";
-#else
-__RCSID("$NetBSD: cp.c,v 1.59 2016/03/05 19:48:55 uwe Exp $");
-#endif
-#endif /* not lint */
-
/*
* Cp copies source files to target files.
*
@@ -72,9 +57,11 @@ __RCSID("$NetBSD: cp.c,v 1.59 2016/03/05 19:48:55 uwe Exp $");
#include <locale.h>
#include <signal.h>
#include <stdlib.h>
+#include <bsd/stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include <signal.h>
#include "extern.h"
@@ -96,7 +83,7 @@ enum op { FILE_TO_FILE, FILE_TO_DIR, DIR_TO_DNE };
static int copy(char *[], enum op, int);
static void
-progress(int sig __unused)
+progress(int sig)
{
pinfo++;
@@ -218,7 +205,7 @@ main(int argc, char *argv[])
/* Set end of argument list for fts(3). */
argv[argc] = NULL;
- (void)signal(SIGINFO, progress);
+ (void)signal(SIGHUP, progress);
/*
* Cp has two distinct cases: