Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/sys (conf.h) / pstat.c fallout



Christos Zoulas <christos%netbsd.org@localhost> 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



Home | Main Index | Thread Index | Old Index