From b8a6996e258a2c30de40fb20cab0d17a38c3eff2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 1 Jan 2012 01:46:34 +0100 Subject: maint: with split lines, don't leave an operator at end of line * src/copy.c (copy_reg): Split an expression before a binary operator, not after it. * src/cut.c (set_fields): Likewise. * src/id.c (main): Likewise. * src/install.c (setdefaultfilecon): Likewise. * src/join.c (ignore_case): Likewise. * src/pr.c (cols_ready_to_print, init_parameters, print_page): Likewise. * src/stty.c (set_window_size): Likewise. * src/wc.c (SUPPORT_OLD_MBRTOWC): Likewise. * src/who.c (scan_entries): Likewise. * src/test.c (binary_operator): Join a split line. * src/extent-scan.c (extent_scan_read): Move an ">" from end of line to beginning of the following. Likewise for two other expressions. --- src/who.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/who.c') diff --git a/src/who.c b/src/who.c index 84c68d736..c875b1de6 100644 --- a/src/who.c +++ b/src/who.c @@ -590,9 +590,9 @@ scan_entries (size_t n, const STRUCT_UTMP *utmp_buf) while (n--) { - if (!my_line_only || - strncmp (ttyname_b, utmp_buf->ut_line, - sizeof (utmp_buf->ut_line)) == 0) + if (!my_line_only + || strncmp (ttyname_b, utmp_buf->ut_line, + sizeof (utmp_buf->ut_line)) == 0) { if (need_users && IS_USER_PROCESS (utmp_buf)) print_user (utmp_buf, boottime); -- cgit v1.2.3-54-g00ecf