=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/diff/diff.c,v retrieving revision 1.21 retrieving revision 1.22 diff -c -r1.21 -r1.22 *** src/usr.bin/diff/diff.c 2003/07/04 17:50:24 1.21 --- src/usr.bin/diff/diff.c 2003/07/04 17:52:35 1.22 *************** *** 1,4 **** ! /* $OpenBSD: diff.c,v 1.21 2003/07/04 17:50:24 millert Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. --- 1,4 ---- ! /* $OpenBSD: diff.c,v 1.22 2003/07/04 17:52:35 millert Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. *************** *** 90,96 **** status = 2; diffargv = argv; ! while ((ch = getopt(argc, argv, "abC:cD:efinrS:stU:uw")) != -1) { switch (ch) { case 'a': aflag++; --- 90,96 ---- status = 2; diffargv = argv; ! while ((ch = getopt(argc, argv, "abC:cD:efhinrS:stU:uw")) != -1) { switch (ch) { case 'a': aflag++; *************** *** 118,123 **** --- 118,126 ---- case 'f': opt = D_REVERSE; break; + case 'h': + /* silently ignore for backwards compatibility */ + break; case 'i': iflag++; break; *************** *** 208,214 **** void *p; if ((p = malloc(n)) == NULL) ! error("files too big, try -h"); return (p); } --- 211,217 ---- void *p; if ((p = malloc(n)) == NULL) ! error(NULL); return (p); } *************** *** 218,224 **** void *q; if ((q = realloc(p, n)) == NULL) ! error("files too big, try -h"); return (q); } --- 221,227 ---- void *q; if ((q = realloc(p, n)) == NULL) ! error(NULL); return (q); }