31c31
< __FBSDID("$FreeBSD: head/usr.bin/grep/grep.c 210578 2010-07-29 00:11:14Z gabor $");
---
> __FBSDID("$FreeBSD: head/usr.bin/grep/grep.c 210622 2010-07-29 18:02:57Z gabor $");
64c64
< /* 3*/ "unknown --color option",
---
> /* 3*/ "unknown %s option",
69,71c69,70
< /* 8*/ "unknown --binary-files option",
< /* 9*/ "Binary file %s matches\n",
< /*10*/ "%s (BSD grep) %s\n",
---
> /* 8*/ "Binary file %s matches\n",
> /* 9*/ "%s (BSD grep) %s\n",
448,451c447,448
< else {
< errno = EINVAL;
< err(2, NULL);
< }
---
> else
> errx(2, getstr(3), "--devices");
461,464c458,459
< else {
< errno = EINVAL;
< err(2, NULL);
< }
---
> else
> errx(2, getstr(3), "--directories");
555c550
< printf(getstr(10), __progname, VERSION);
---
> printf(getstr(9), __progname, VERSION);
577c572
< errx(2, "%s", getstr(8));
---
> errx(2, getstr(3), "--binary-files");
597c592
< errx(2, "%s", getstr(3));
---
> errx(2, getstr(3), "--color");
< __FBSDID("$FreeBSD: head/usr.bin/grep/grep.c 210578 2010-07-29 00:11:14Z gabor $");
---
> __FBSDID("$FreeBSD: head/usr.bin/grep/grep.c 210622 2010-07-29 18:02:57Z gabor $");
64c64
< /* 3*/ "unknown --color option",
---
> /* 3*/ "unknown %s option",
69,71c69,70
< /* 8*/ "unknown --binary-files option",
< /* 9*/ "Binary file %s matches\n",
< /*10*/ "%s (BSD grep) %s\n",
---
> /* 8*/ "Binary file %s matches\n",
> /* 9*/ "%s (BSD grep) %s\n",
448,451c447,448
< else {
< errno = EINVAL;
< err(2, NULL);
< }
---
> else
> errx(2, getstr(3), "--devices");
461,464c458,459
< else {
< errno = EINVAL;
< err(2, NULL);
< }
---
> else
> errx(2, getstr(3), "--directories");
555c550
< printf(getstr(10), __progname, VERSION);
---
> printf(getstr(9), __progname, VERSION);
577c572
< errx(2, "%s", getstr(8));
---
> errx(2, getstr(3), "--binary-files");
597c592
< errx(2, "%s", getstr(3));
---
> errx(2, getstr(3), "--color");