Date: Sun, 20 May 2018 01:30:19 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333907 - head/usr.bin/top Message-ID: <201805200130.w4K1UJKn077337@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Sun May 20 01:30:19 2018 New Revision: 333907 URL: https://svnweb.freebsd.org/changeset/base/333907 Log: top(1): be constant in a structure This silences some warnings that are still hidden since the remainder of top(1) does not build with higher WARNS yet. Modified: head/usr.bin/top/sigconv.awk Modified: head/usr.bin/top/sigconv.awk ============================================================================== --- head/usr.bin/top/sigconv.awk Sun May 20 01:00:56 2018 (r333906) +++ head/usr.bin/top/sigconv.awk Sun May 20 01:30:19 2018 (r333907) @@ -6,8 +6,8 @@ BEGIN { print "/* This file was automatically generated */" print "/* by the awk script \"sigconv.awk\". */\n" print "struct sigdesc {" - print " char *name;" - print " int number;" + print " const char * const name;" + print " const int number;" print "};\n" print "struct sigdesc sigdesc[] = {" }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805200130.w4K1UJKn077337>