svn commit: r333907 - head/usr.bin/top

Eitan Adler eadler at FreeBSD.org
Sun May 20 01:30:20 UTC 2018


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[] = {"
 		}


More information about the svn-src-head mailing list