diff options
author | Toomas Soome <tsoome@me.com> | 2017-02-16 08:33:27 +0200 |
---|---|---|
committer | Hans Rosenfeld <hans.rosenfeld@joyent.com> | 2017-06-12 12:55:31 +0200 |
commit | 8487916bce68d458d3da4cba7d0be961dfce786f (patch) | |
tree | d69f8db41dee182e3231bd29e066f7aaeb387ae2 /usr/src/cmd | |
parent | bcb81701c49bee8a728b9a14ac9b6675854a7f25 (diff) | |
download | illumos-joyent-8487916bce68d458d3da4cba7d0be961dfce786f.tar.gz |
8316 srchtxt: misleading-indentation
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Diffstat (limited to 'usr/src/cmd')
-rw-r--r-- | usr/src/cmd/srchtxt/srchtxt.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/usr/src/cmd/srchtxt/srchtxt.c b/usr/src/cmd/srchtxt/srchtxt.c index 30d64f3484..5c1e193a82 100644 --- a/usr/src/cmd/srchtxt/srchtxt.c +++ b/usr/src/cmd/srchtxt/srchtxt.c @@ -27,8 +27,6 @@ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <stdio.h> #include <dirent.h> #include <regexpr.h> @@ -270,14 +268,12 @@ char *regexpr; num_msgs = *(int *)addr; for (msgnum = 1; msgnum <= num_msgs; msgnum++) { msg = (char *)(*(int *)(addr + sizeof (int) * msgnum) + addr); - if (textflg) - if (step(msg, regexpr)) { + if (textflg) { + if (step(msg, regexpr)) prnt_str(msg); - continue; - } - else - continue; - prnt_str(msg); + continue; + } + prnt_str(msg); } } |