svn commit: r357268 - head/usr.bin/procstat
Dimitry Andric
dim at FreeBSD.org
Wed Jan 29 21:06:23 UTC 2020
Author: dim
Date: Wed Jan 29 21:06:22 2020
New Revision: 357268
URL: https://svnweb.freebsd.org/changeset/base/357268
Log:
Merge r357260 from the clang1000-import branch:
Fix the following -Werror warning from clang 10.0.0 in procstat:
usr.bin/procstat/procstat_sigs.c:79:3: error: misleading indentation; statement is not part of the previous 'else' [-Werror,-Wmisleading-indentation]
xo_close_container(name);
^
usr.bin/procstat/procstat_sigs.c:77:4: note: previous statement is here
} else
^
The intent was to group the xo_close_container() call to the previous
snprintf() call.
MFC after: 3 days
Modified:
head/usr.bin/procstat/procstat_sigs.c
Directory Properties:
head/ (props changed)
Modified: head/usr.bin/procstat/procstat_sigs.c
==============================================================================
--- head/usr.bin/procstat/procstat_sigs.c Wed Jan 29 20:56:31 2020 (r357267)
+++ head/usr.bin/procstat/procstat_sigs.c Wed Jan 29 21:06:22 2020 (r357268)
@@ -74,9 +74,10 @@ procstat_close_signame(int sig)
for (i = 0; name[i] != 0; i++)
name[i] = toupper(name[i]);
xo_close_container(name);
- } else
+ } else {
snprintf(name, 12, "%d", sig);
xo_close_container(name);
+ }
}
static void
More information about the svn-src-all
mailing list