aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/paste/paste.c
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-04-01 20:31:55 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-04-01 20:31:55 +0000
commit599a8ea81c519214f4a050d8077991a18a0b0ac6 (patch)
treea17d01a75ea067dfd07865761e185447d6137293 /usr.bin/paste/paste.c
parent355e3bd36db65b5cd2cc090fb19ffb0519985c60 (diff)
Notes
Diffstat (limited to 'usr.bin/paste/paste.c')
-rw-r--r--usr.bin/paste/paste.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/paste/paste.c b/usr.bin/paste/paste.c
index a1971199b49c..cad7bef0928f 100644
--- a/usr.bin/paste/paste.c
+++ b/usr.bin/paste/paste.c
@@ -40,13 +40,14 @@ static const char copyright[] =
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
-#ifndef lint
#if 0
+#ifndef lint
static char sccsid[] = "@(#)paste.c 8.1 (Berkeley) 6/6/93";
-#endif
-static const char rcsid[] =
- "$FreeBSD$";
#endif /* not lint */
+#endif
+
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <err.h>
@@ -88,6 +89,8 @@ main(argc, argv)
argc -= optind;
argv += optind;
+ if (*argv == NULL)
+ usage();
if (!delim) {
delimcnt = 1;
delim = "\t";