Subject: Re: CVS commit: src/sys/sys (conf.h) / pstat.c fallout
To: None <source-changes@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: source-changes
Date: 05/30/2005 03:10:11
Christos Zoulas <christos@netbsd.org> typed:
: Module Name:	src
: Committed By:	christos
: Date:		Sun May 29 21:19:41 UTC 2005
: Modified Files:
: 	src/sys/sys: conf.h exec.h exec_macho.h hash.h ksyms.h mount.h sysctl.h
: 	    systm.h vnode.h
: Log Message:
: Sprinkle const.
:
: To generate a diff of this commit:
: cvs rdiff -r1.116 -r1.117 src/sys/sys/conf.h

Fallout in pstat.c:

--- usr.sbin/pstat/pstat.c.org	2004-12-19 17:03:56.000000000 +1100
+++ usr.sbin/pstat/pstat.c	2005-05-30 13:06:21.000000000 +1000
@@ -821,7 +821,8 @@
 	char state[sizeof(ttystates) / sizeof(ttystates[0]) + 1];
 	char dev[2 + 3 + 1 + 5 + 1]; /* 12bit major + 20bit minor */
 	struct linesw t_linesw;
-	char *name, buffer;
+	const char *name;
+	char buffer;
 	pid_t pgid;
 	int n, ovflw;
 
Regards,
Geoff