From 889c8aec626a5aa9227638490866cad58c853bdb Mon Sep 17 00:00:00 2001 From: jmc Date: Tue, 22 Jun 2021 20:16:36 +0000 Subject: [PATCH] reduce verbosity in usage and make it match SYNOPSIS; ok millert --- usr.bin/locate/locate/locate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.bin/locate/locate/locate.c b/usr.bin/locate/locate/locate.c index 16ae9513ce9..53c31d56656 100644 --- a/usr.bin/locate/locate/locate.c +++ b/usr.bin/locate/locate/locate.c @@ -1,5 +1,5 @@ /* - * $OpenBSD: locate.c,v 1.33 2019/01/17 06:15:44 tedu Exp $ + * $OpenBSD: locate.c,v 1.34 2021/06/22 20:16:36 jmc Exp $ * * Copyright (c) 1995 Wolfram Schneider . Berlin. * Copyright (c) 1989, 1993 @@ -252,8 +252,7 @@ usage(void) { (void)fprintf(stderr, "usage: locate [-bciS] [-d database] "); (void)fprintf(stderr, "[-l limit] pattern ...\n"); - (void)fprintf(stderr, "default database: `%s' or $LOCATE_PATH\n", - _PATH_FCODES); + exit(1); } -- 2.20.1