summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/diff/diff.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c
index 813674f9faf..9a6ad78dc5b 100644
--- a/usr.bin/diff/diff.c
+++ b/usr.bin/diff/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.21 2003/07/04 17:50:24 millert Exp $ */
+/* $OpenBSD: diff.c,v 1.22 2003/07/04 17:52:35 millert Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -90,7 +90,7 @@ main(int argc, char **argv)
status = 2;
diffargv = argv;
- while ((ch = getopt(argc, argv, "abC:cD:efinrS:stU:uw")) != -1) {
+ while ((ch = getopt(argc, argv, "abC:cD:efhinrS:stU:uw")) != -1) {
switch (ch) {
case 'a':
aflag++;
@@ -118,6 +118,9 @@ main(int argc, char **argv)
case 'f':
opt = D_REVERSE;
break;
+ case 'h':
+ /* silently ignore for backwards compatibility */
+ break;
case 'i':
iflag++;
break;
@@ -208,7 +211,7 @@ emalloc(size_t n)
void *p;
if ((p = malloc(n)) == NULL)
- error("files too big, try -h");
+ error(NULL);
return (p);
}
@@ -218,7 +221,7 @@ erealloc(void *p, size_t n)
void *q;
if ((q = realloc(p, n)) == NULL)
- error("files too big, try -h");
+ error(NULL);
return (q);
}