svn commit: r228407 - head/sbin/camcontrol

2011-12-11 Thread Ed Schouten
Author: ed Date: Sun Dec 11 11:38:50 2011 New Revision: 228407 URL: http://svn.freebsd.org/changeset/base/228407 Log: Add missing static keywords to global variables in camcontrol. While there, make the vendor list const and add appropriate keywords to functions that use this list.

svn commit: r228408 - head/sbin/reboot

2011-12-11 Thread Ed Schouten
Author: ed Date: Sun Dec 11 11:42:44 2011 New Revision: 228408 URL: http://svn.freebsd.org/changeset/base/228408 Log: Let reboot(8) use getprogname() to compare the program name. While there, mark the global variable dohalt static, as reboot(8) only consists of a single C file.

svn commit: r228417 - head/sbin/bsdlabel

2011-12-11 Thread Ed Schouten
Author: ed Date: Sun Dec 11 19:28:04 2011 New Revision: 228417 URL: http://svn.freebsd.org/changeset/base/228417 Log: Add missing static keyword. All global variables and functions are marked static. Simply because this is an enum, doesn't mean we can't do so as well. Modified:

svn commit: r228423 - head/bin/chio

2011-12-11 Thread Ed Schouten
Author: ed Date: Sun Dec 11 20:53:12 2011 New Revision: 228423 URL: http://svn.freebsd.org/changeset/base/228423 Log: Add static keywords to chio(1). All other global variables are already marked static, so for consistency sake, add them to these three arrays as well. Modified:

svn commit: r228425 - head/usr.sbin/vidcontrol

2011-12-11 Thread Ed Schouten
Author: ed Date: Sun Dec 11 21:02:33 2011 New Revision: 228425 URL: http://svn.freebsd.org/changeset/base/228425 Log: Add static keywords to vidcontrol(1). While there, remove the false optimisation of the colors array. It seems that changing it to an array of pointers instead of a 16x16

Re: svn commit: r228330 - in head: include sys/sys

2011-12-11 Thread Ed Schouten
just use the one C1x uses. So this is the same as __dead2, right? Maybe we should do a sweep of the tree and replace all __dead2's by _Noreturn? -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgp4aakqdFdqD.pgp Description: PGP signature

svn commit: r228394 - in head: usr.bin/find usr.bin/lex usr.sbin/mount_portalfs

2011-12-10 Thread Ed Schouten
Author: ed Date: Sat Dec 10 18:11:06 2011 New Revision: 228394 URL: http://svn.freebsd.org/changeset/base/228394 Log: Replace char copyright[] by static const char copyright[]. It seems the latter is used throughout the tree. Modified: head/usr.bin/find/main.c head/usr.bin/lex/main.c

svn commit: r228395 - head/usr.bin/grep

2011-12-10 Thread Ed Schouten
Author: ed Date: Sat Dec 10 18:21:03 2011 New Revision: 228395 URL: http://svn.freebsd.org/changeset/base/228395 Log: Add missing static const to long options table. This table is only used in this C file and passed to getopt_long(), so we can safely add static and const to it.

svn commit: r228396 - head/usr.bin/truss

2011-12-10 Thread Ed Schouten
Author: ed Date: Sat Dec 10 18:27:55 2011 New Revision: 228396 URL: http://svn.freebsd.org/changeset/base/228396 Log: Add more static keywords to truss(1) source code. There are some tables in the source code that are only used by the individual source files themselves. Therefore there

svn commit: r228397 - head/libexec/comsat

2011-12-10 Thread Ed Schouten
Author: ed Date: Sat Dec 10 18:35:26 2011 New Revision: 228397 URL: http://svn.freebsd.org/changeset/base/228397 Log: Make comsat(8) approximately 15% smaller. This program only consists of a single C file, so simply mark everything except main() static. Modified:

svn commit: r228283 - head/sys/x86/acpica

2011-12-05 Thread Ed Schouten
Author: ed Date: Mon Dec 5 16:08:18 2011 New Revision: 228283 URL: http://svn.freebsd.org/changeset/base/228283 Log: Get rid of kludgy per-descriptor state handling in acpi_apm. Where i386/bios/apm.c requires no per-descriptor state, the ACPI version of these device do. Instead of using

svn commit: r227691 - in head/sys: amd64/linux32 compat/freebsd32 compat/linux compat/svr4 i386/ibcs2 i386/linux kern

2011-11-18 Thread Ed Schouten
Author: ed Date: Sat Nov 19 06:35:15 2011 New Revision: 227691 URL: http://svn.freebsd.org/changeset/base/227691 Log: Improve *access*() parameter name consistency. The current code mixes the use of `flags' and `mode'. This is a bit confusing, since the faccessat() function as a `flag'

svn commit: r227692 - in head/sys: amd64/linux32 compat/freebsd32 compat/svr4 i386/ibcs2 i386/linux kern sys

2011-11-18 Thread Ed Schouten
Author: ed Date: Sat Nov 19 06:36:11 2011 New Revision: 227692 URL: http://svn.freebsd.org/changeset/base/227692 Log: Regenerate system call tables. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

svn commit: r227693 - in head/sys: amd64/linux32 compat/linux i386/linux

2011-11-18 Thread Ed Schouten
Author: ed Date: Sat Nov 19 07:19:37 2011 New Revision: 227693 URL: http://svn.freebsd.org/changeset/base/227693 Log: Make the Linux *at() calls a bit more complete. Properly support: - AT_EACCESS for faccessat(), - AT_SYMLINK_FOLLOW for linkat(). Modified:

svn commit: r227694 - in head/sys: amd64/linux32 i386/linux

2011-11-18 Thread Ed Schouten
Author: ed Date: Sat Nov 19 07:20:20 2011 New Revision: 227694 URL: http://svn.freebsd.org/changeset/base/227694 Log: Regenerate system call tables. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

Re: svn commit: r227344 - head/sys/dev/ath

2011-11-16 Thread Ed Schouten
Hi Adrian, * Adrian Chadd adr...@freebsd.org, 2008 18:08: -static MALLOC_DEFINE(M_ATHDEV, athdev, ath driver dma buffers); +MALLOC_DEFINE(M_ATHDEV, athdev, ath driver dma buffers); Is there a reason why we can't mark this static? Thanks, -- Ed Schouten e...@80386.nl WWW: http://80386

svn commit: r227384 - in head/sys: kern sys tools

2011-11-09 Thread Ed Schouten
Author: ed Date: Wed Nov 9 11:00:29 2011 New Revision: 227384 URL: http://svn.freebsd.org/changeset/base/227384 Log: Simplify the code emitted by makeobjops.awk slightly. Just place the default kobj_method inside the kobjop_desc structure. There's no need to give these kobj_methods

svn commit: r227385 - head/sys/tools

2011-11-09 Thread Ed Schouten
Author: ed Date: Wed Nov 9 13:26:59 2011 New Revision: 227385 URL: http://svn.freebsd.org/changeset/base/227385 Log: Restore the comment that I removed by accident. The comment still applies to this block of code. Modified: head/sys/tools/makeobjops.awk Modified:

Re: svn commit: r227391 - head/contrib/gcc/config/arm

2011-11-09 Thread Ed Schouten
* Fabien Thomas fabi...@freebsd.org, 2009 16:59: Import gcc fix for -fstack-protector that produces segfaulting binaries on arm/armel. Maybe we can now enable -fstack-protector on arm as well? It's currently disabled in bsd.sys.mk and /sys/conf/kern.mk. Thanks, -- Ed Schouten e...@80386

svn commit: r227407 - head/sbin/ffsinfo

2011-11-09 Thread Ed Schouten
Author: ed Date: Wed Nov 9 21:01:50 2011 New Revision: 227407 URL: http://svn.freebsd.org/changeset/base/227407 Log: Remove trailing whitespace. Modified: head/sbin/ffsinfo/Makefile Modified: head/sbin/ffsinfo/Makefile

svn commit: r227335 - head/usr.bin/du

2011-11-08 Thread Ed Schouten
Author: ed Date: Tue Nov 8 11:36:46 2011 New Revision: 227335 URL: http://svn.freebsd.org/changeset/base/227335 Log: Simplify getopt switch parsing. Only one of these flags can be set. Just add them together and check the value. Also, get rid of the listall variable. The code is already

svn commit: r227343 - in head/sys: kern sys tools

2011-11-08 Thread Ed Schouten
Author: ed Date: Tue Nov 8 15:38:21 2011 New Revision: 227343 URL: http://svn.freebsd.org/changeset/base/227343 Log: Make kobj_methods constant. These structures hold no information that is modified during runtime. By marking this constant, we see approximately 600 symbols become

svn commit: r227299 - head/usr.bin/dc

2011-11-07 Thread Ed Schouten
Author: ed Date: Mon Nov 7 09:42:22 2011 New Revision: 227299 URL: http://svn.freebsd.org/changeset/base/227299 Log: Remove unneeded CFLAGS. Such optimisations should not be performed in this Makefile. Also, uqs@ suggested they have no effect, because the checksum of the resulting

svn commit: r227314 - head/lib/libpam/modules/pam_lastlog

2011-11-07 Thread Ed Schouten
Author: ed Date: Mon Nov 7 19:57:42 2011 New Revision: 227314 URL: http://svn.freebsd.org/changeset/base/227314 Log: Ensure pam_lastlog removes the /dev/ component of the TTY name. Some consumers of PAM remove the /dev/ component (i.e. login), while others don't (i.e. su). We must

svn commit: r227152 - head/usr.bin/banner

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:13:51 2011 New Revision: 227152 URL: http://svn.freebsd.org/changeset/base/227152 Log: Add missing static keywords to banner(1) Modified: head/usr.bin/banner/banner.c Modified: head/usr.bin/banner/banner.c

svn commit: r227153 - head/usr.bin/c99

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:13:58 2011 New Revision: 227153 URL: http://svn.freebsd.org/changeset/base/227153 Log: Add missing static keywords to c99(1) Modified: head/usr.bin/c99/c99.c Modified: head/usr.bin/c99/c99.c

svn commit: r227154 - head/usr.bin/cap_mkdb

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:03 2011 New Revision: 227154 URL: http://svn.freebsd.org/changeset/base/227154 Log: Add missing static keywords to cap_mkdb(1) Modified: head/usr.bin/cap_mkdb/cap_mkdb.c Modified: head/usr.bin/cap_mkdb/cap_mkdb.c

svn commit: r227157 - head/usr.bin/col

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:22 2011 New Revision: 227157 URL: http://svn.freebsd.org/changeset/base/227157 Log: Add missing static keywords to col(1) Modified: head/usr.bin/col/col.c Modified: head/usr.bin/col/col.c

svn commit: r227158 - head/usr.bin/colcrt

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:28 2011 New Revision: 227158 URL: http://svn.freebsd.org/changeset/base/227158 Log: Add missing static keywords to colcrt(1) Modified: head/usr.bin/colcrt/colcrt.c Modified: head/usr.bin/colcrt/colcrt.c

svn commit: r227161 - head/usr.bin/csplit

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:45 2011 New Revision: 227161 URL: http://svn.freebsd.org/changeset/base/227161 Log: Add missing static keywords to csplit(1) Modified: head/usr.bin/csplit/csplit.c Modified: head/usr.bin/csplit/csplit.c

svn commit: r227155 - head/usr.bin/catman

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:09 2011 New Revision: 227155 URL: http://svn.freebsd.org/changeset/base/227155 Log: Add missing static keywords to catman(1) Modified: head/usr.bin/catman/catman.c Modified: head/usr.bin/catman/catman.c

svn commit: r227156 - head/usr.bin/cmp

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:16 2011 New Revision: 227156 URL: http://svn.freebsd.org/changeset/base/227156 Log: Add missing static keywords to cmp(1) Modified: head/usr.bin/cmp/extern.h Modified: head/usr.bin/cmp/extern.h

svn commit: r227160 - head/usr.bin/cpuset

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:40 2011 New Revision: 227160 URL: http://svn.freebsd.org/changeset/base/227160 Log: Add missing static keywords to cpuset(1) Modified: head/usr.bin/cpuset/cpuset.c Modified: head/usr.bin/cpuset/cpuset.c

svn commit: r227162 - head/usr.bin/cut

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:51 2011 New Revision: 227162 URL: http://svn.freebsd.org/changeset/base/227162 Log: Add missing static keywords to cut(1) Modified: head/usr.bin/cut/cut.c Modified: head/usr.bin/cut/cut.c

svn commit: r227166 - head/usr.bin/id

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:30 2011 New Revision: 227166 URL: http://svn.freebsd.org/changeset/base/227166 Log: Add missing static keywords to id(1) Modified: head/usr.bin/id/id.c Modified: head/usr.bin/id/id.c

svn commit: r227167 - head/usr.bin/join

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:35 2011 New Revision: 227167 URL: http://svn.freebsd.org/changeset/base/227167 Log: Add missing static keywords to join(1) Modified: head/usr.bin/join/join.c Modified: head/usr.bin/join/join.c

svn commit: r227175 - head/usr.bin/pr

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:24 2011 New Revision: 227175 URL: http://svn.freebsd.org/changeset/base/227175 Log: Add missing static keywords to pr(1) Modified: head/usr.bin/pr/extern.h head/usr.bin/pr/pr.c Modified: head/usr.bin/pr/extern.h

svn commit: r227165 - head/usr.bin/fold

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:23 2011 New Revision: 227165 URL: http://svn.freebsd.org/changeset/base/227165 Log: Add missing static keywords to fold(1) Modified: head/usr.bin/fold/fold.c Modified: head/usr.bin/fold/fold.c

svn commit: r227168 - head/usr.bin/last

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:41 2011 New Revision: 227168 URL: http://svn.freebsd.org/changeset/base/227168 Log: Add missing static keywords to last(1) Modified: head/usr.bin/last/last.c Modified: head/usr.bin/last/last.c

svn commit: r227169 - head/usr.bin/lock

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:48 2011 New Revision: 227169 URL: http://svn.freebsd.org/changeset/base/227169 Log: Add missing static keywords to lock(1) Modified: head/usr.bin/lock/lock.c Modified: head/usr.bin/lock/lock.c

svn commit: r227170 - head/usr.bin/logger

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:53 2011 New Revision: 227170 URL: http://svn.freebsd.org/changeset/base/227170 Log: Add missing static keywords to logger(1) Modified: head/usr.bin/logger/logger.c Modified: head/usr.bin/logger/logger.c

svn commit: r227171 - head/usr.bin/look

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:59 2011 New Revision: 227171 URL: http://svn.freebsd.org/changeset/base/227171 Log: Add missing static keywords to look(1) Modified: head/usr.bin/look/look.c Modified: head/usr.bin/look/look.c

svn commit: r227172 - head/usr.bin/make

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:06 2011 New Revision: 227172 URL: http://svn.freebsd.org/changeset/base/227172 Log: Add missing static keywords to make(1) Modified: head/usr.bin/make/globals.h Modified: head/usr.bin/make/globals.h

svn commit: r227173 - head/usr.bin/ministat

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:11 2011 New Revision: 227173 URL: http://svn.freebsd.org/changeset/base/227173 Log: Add missing static keywords to ministat(1) Modified: head/usr.bin/ministat/ministat.c Modified: head/usr.bin/ministat/ministat.c

svn commit: r227174 - head/usr.bin/mt

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:18 2011 New Revision: 227174 URL: http://svn.freebsd.org/changeset/base/227174 Log: Add missing static keywords to mt(1) Modified: head/usr.bin/mt/mt.c Modified: head/usr.bin/mt/mt.c

svn commit: r227185 - head/usr.bin/talk

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:23 2011 New Revision: 227185 URL: http://svn.freebsd.org/changeset/base/227185 Log: Add missing static keywords to talk(1) Modified: head/usr.bin/talk/ctl.c head/usr.bin/talk/init_disp.c head/usr.bin/talk/invite.c head/usr.bin/talk/talk.h Modified:

svn commit: r227184 - head/usr.bin/tail

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:17 2011 New Revision: 227184 URL: http://svn.freebsd.org/changeset/base/227184 Log: Add missing static keywords to tail(1) Modified: head/usr.bin/tail/forward.c head/usr.bin/tail/tail.c Modified: head/usr.bin/tail/forward.c

svn commit: r227187 - head/usr.bin/tee

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:35 2011 New Revision: 227187 URL: http://svn.freebsd.org/changeset/base/227187 Log: Add missing static keywords to tee(1) Modified: head/usr.bin/tee/tee.c Modified: head/usr.bin/tee/tee.c

svn commit: r227189 - head/usr.bin/tsort

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:47 2011 New Revision: 227189 URL: http://svn.freebsd.org/changeset/base/227189 Log: Add missing static keywords to tsort(1) Modified: head/usr.bin/tsort/tsort.c Modified: head/usr.bin/tsort/tsort.c

svn commit: r227202 - head/usr.bin/xinstall

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:19:07 2011 New Revision: 227202 URL: http://svn.freebsd.org/changeset/base/227202 Log: Add missing static keywords to xinstall(1) Modified: head/usr.bin/xinstall/xinstall.c Modified: head/usr.bin/xinstall/xinstall.c

svn commit: r227176 - head/usr.bin/quota

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:29 2011 New Revision: 227176 URL: http://svn.freebsd.org/changeset/base/227176 Log: Add missing static keywords to quota(1) Modified: head/usr.bin/quota/quota.c Modified: head/usr.bin/quota/quota.c

svn commit: r227177 - head/usr.bin/rs

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:35 2011 New Revision: 227177 URL: http://svn.freebsd.org/changeset/base/227177 Log: Add missing static keywords to rs(1) Modified: head/usr.bin/rs/rs.c Modified: head/usr.bin/rs/rs.c

svn commit: r227178 - head/usr.bin/ruptime

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:41 2011 New Revision: 227178 URL: http://svn.freebsd.org/changeset/base/227178 Log: Add missing static keywords to ruptime(1) Modified: head/usr.bin/ruptime/ruptime.c Modified: head/usr.bin/ruptime/ruptime.c

svn commit: r227179 - head/usr.bin/rusers

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:47 2011 New Revision: 227179 URL: http://svn.freebsd.org/changeset/base/227179 Log: Add missing static keywords to rusers(1) Modified: head/usr.bin/rusers/rusers.c Modified: head/usr.bin/rusers/rusers.c

svn commit: r227180 - head/usr.bin/rwall

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:53 2011 New Revision: 227180 URL: http://svn.freebsd.org/changeset/base/227180 Log: Add missing static keywords to rwall(1) Modified: head/usr.bin/rwall/rwall.c Modified: head/usr.bin/rwall/rwall.c

svn commit: r227181 - head/usr.bin/rwho

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:59 2011 New Revision: 227181 URL: http://svn.freebsd.org/changeset/base/227181 Log: Add missing static keywords to rwho(1) Modified: head/usr.bin/rwho/rwho.c Modified: head/usr.bin/rwho/rwho.c

svn commit: r227182 - head/usr.bin/seq

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:05 2011 New Revision: 227182 URL: http://svn.freebsd.org/changeset/base/227182 Log: Add missing static keywords to seq(1) Modified: head/usr.bin/seq/seq.c Modified: head/usr.bin/seq/seq.c

svn commit: r227183 - head/usr.bin/split

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:11 2011 New Revision: 227183 URL: http://svn.freebsd.org/changeset/base/227183 Log: Add missing static keywords to split(1) Modified: head/usr.bin/split/split.c Modified: head/usr.bin/split/split.c

svn commit: r227186 - head/usr.bin/tcopy

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:29 2011 New Revision: 227186 URL: http://svn.freebsd.org/changeset/base/227186 Log: Add missing static keywords to tcopy(1) Modified: head/usr.bin/tcopy/tcopy.c Modified: head/usr.bin/tcopy/tcopy.c

svn commit: r227188 - head/usr.bin/tr

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:42 2011 New Revision: 227188 URL: http://svn.freebsd.org/changeset/base/227188 Log: Add missing static keywords to tr(1) Modified: head/usr.bin/tr/tr.c Modified: head/usr.bin/tr/tr.c

svn commit: r227191 - head/usr.bin/uname

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:59 2011 New Revision: 227191 URL: http://svn.freebsd.org/changeset/base/227191 Log: Add missing static keywords to uname(1) Modified: head/usr.bin/uname/uname.c Modified: head/usr.bin/uname/uname.c

svn commit: r227193 - head/usr.bin/uniq

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:18:11 2011 New Revision: 227193 URL: http://svn.freebsd.org/changeset/base/227193 Log: Add missing static keywords to uniq(1) Modified: head/usr.bin/uniq/uniq.c Modified: head/usr.bin/uniq/uniq.c

svn commit: r227192 - head/usr.bin/unexpand

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:18:05 2011 New Revision: 227192 URL: http://svn.freebsd.org/changeset/base/227192 Log: Add missing static keywords to unexpand(1) Modified: head/usr.bin/unexpand/unexpand.c Modified: head/usr.bin/unexpand/unexpand.c

svn commit: r227194 - head/usr.bin/units

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:18:17 2011 New Revision: 227194 URL: http://svn.freebsd.org/changeset/base/227194 Log: Add missing static keywords to units(1) Modified: head/usr.bin/units/units.c Modified: head/usr.bin/units/units.c

svn commit: r227195 - head/usr.bin/usbhidaction

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:18:23 2011 New Revision: 227195 URL: http://svn.freebsd.org/changeset/base/227195 Log: Add missing static keywords to usbhidaction(1) Modified: head/usr.bin/usbhidaction/usbhidaction.c Modified: head/usr.bin/usbhidaction/usbhidaction.c

svn commit: r227198 - head/usr.bin/vis

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:18:42 2011 New Revision: 227198 URL: http://svn.freebsd.org/changeset/base/227198 Log: Add missing static keywords to vis(1) Modified: head/usr.bin/vis/vis.c Modified: head/usr.bin/vis/vis.c

svn commit: r227199 - head/usr.bin/w

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:18:47 2011 New Revision: 227199 URL: http://svn.freebsd.org/changeset/base/227199 Log: Add missing static keywords to w(1) Modified: head/usr.bin/w/w.c Modified: head/usr.bin/w/w.c ==

svn commit: r227200 - head/usr.bin/wall

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:18:55 2011 New Revision: 227200 URL: http://svn.freebsd.org/changeset/base/227200 Log: Add missing static keywords to wall(1) Modified: head/usr.bin/wall/wall.c Modified: head/usr.bin/wall/wall.c

svn commit: r227201 - head/usr.bin/wc

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:19:00 2011 New Revision: 227201 URL: http://svn.freebsd.org/changeset/base/227201 Log: Add missing static keywords to wc(1) Modified: head/usr.bin/wc/wc.c Modified: head/usr.bin/wc/wc.c

svn commit: r227203 - head/usr.bin/id

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 09:09:45 2011 New Revision: 227203 URL: http://svn.freebsd.org/changeset/base/227203 Log: Correct the change made in r227166. This function is only compiled in when building WITH_AUDIT. Modified: head/usr.bin/id/id.c Modified: head/usr.bin/id/id.c

Re: svn commit: r227156 - head/usr.bin/cmp

2011-11-06 Thread Ed Schouten
the diff, I overlooked that there were a small number of changes in there that don't mark things static, but instead mark them extern. In the case for cmp, simply all the `*flag' variables were marked extern anyway, so I decided not to deviate from that for `zflag'. -- Ed Schouten e...@80386.nl WWW

svn commit: r227223 - head/usr.sbin/chroot

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 16:40:17 2011 New Revision: 227223 URL: http://svn.freebsd.org/changeset/base/227223 Log: Eliminate global variables. There is no reason why these three variables should be declared as global variables, while the others aren't. They are only used inside

svn commit: r227224 - head/usr.sbin/mptable

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 16:47:50 2011 New Revision: 227224 URL: http://svn.freebsd.org/changeset/base/227224 Log: Mark all global variables static for mptable(1). While there, remove basetableEntryTypes, which became unused in r71209. Modified: head/usr.sbin/mptable/mptable.c

svn commit: r227225 - head/usr.sbin/cdcontrol

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 16:52:26 2011 New Revision: 227225 URL: http://svn.freebsd.org/changeset/base/227225 Log: Make all functions and global variables static for cdcontrol(8). While there, replace __const by const, which seems to be our preference nowadays. Also fix some style(9)

svn commit: r227228 - head/usr.bin/chpass

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 17:20:44 2011 New Revision: 227228 URL: http://svn.freebsd.org/changeset/base/227228 Log: Mark the structure fields as const. This allows us to simply place these strings as constants in the table itself, letting the compiler decide to simply merge duplicate

svn commit: r227233 - head/usr.bin/at

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 17:32:29 2011 New Revision: 227233 URL: http://svn.freebsd.org/changeset/base/227233 Log: Add missing static keywords to at(1). While there, tidy up the privs.h part, where at.c has to #define to declare some globals. Also group static and non-static global

svn commit: r227234 - head/usr.bin/checknr

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 18:49:03 2011 New Revision: 227234 URL: http://svn.freebsd.org/changeset/base/227234 Log: Mark global functions and/or variables in checknr(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified:

svn commit: r227235 - head/usr.bin/comm

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 18:49:10 2011 New Revision: 227235 URL: http://svn.freebsd.org/changeset/base/227235 Log: Mark global functions and/or variables in comm(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified:

svn commit: r227237 - head/usr.bin/enigma

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 18:49:23 2011 New Revision: 227237 URL: http://svn.freebsd.org/changeset/base/227237 Log: Mark global functions and/or variables in enigma(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified:

svn commit: r227238 - head/usr.bin/expand

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 18:49:30 2011 New Revision: 227238 URL: http://svn.freebsd.org/changeset/base/227238 Log: Mark global functions and/or variables in expand(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified:

svn commit: r227239 - head/usr.bin/fstat

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 18:49:36 2011 New Revision: 227239 URL: http://svn.freebsd.org/changeset/base/227239 Log: Mark global functions and/or variables in fstat(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified:

svn commit: r227240 - head/usr.bin/lam

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 18:49:41 2011 New Revision: 227240 URL: http://svn.freebsd.org/changeset/base/227240 Log: Mark global functions and/or variables in lam(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified:

svn commit: r227241 - head/usr.bin/m4

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 18:49:48 2011 New Revision: 227241 URL: http://svn.freebsd.org/changeset/base/227241 Log: Mark global functions and/or variables in m4(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified:

svn commit: r227242 - head/usr.bin/paste

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 18:49:53 2011 New Revision: 227242 URL: http://svn.freebsd.org/changeset/base/227242 Log: Mark global functions and/or variables in paste(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified:

svn commit: r227243 - head/usr.bin/unifdef

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 18:50:00 2011 New Revision: 227243 URL: http://svn.freebsd.org/changeset/base/227243 Log: Mark global functions and/or variables in unifdef(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified:

svn commit: r227244 - head/usr.bin/whereis

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 18:50:19 2011 New Revision: 227244 URL: http://svn.freebsd.org/changeset/base/227244 Log: Mark global functions and/or variables in whereis(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified:

svn commit: r227245 - head/usr.bin/which

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 18:50:26 2011 New Revision: 227245 URL: http://svn.freebsd.org/changeset/base/227245 Log: Mark global functions and/or variables in which(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified:

svn commit: r227246 - head/usr.bin/whois

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 18:50:33 2011 New Revision: 227246 URL: http://svn.freebsd.org/changeset/base/227246 Log: Mark global functions and/or variables in whois(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified:

svn commit: r227247 - head/usr.bin/xstr

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 18:50:39 2011 New Revision: 227247 URL: http://svn.freebsd.org/changeset/base/227247 Log: Mark global functions and/or variables in xstr(1) static where possible. This allows compilers and static analyzers to more thorough analysis. Modified:

svn commit: r227249 - head/usr.sbin/apm

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 19:01:30 2011 New Revision: 227249 URL: http://svn.freebsd.org/changeset/base/227249 Log: Mark global functions and/or variables in apm(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified:

svn commit: r227250 - head/usr.sbin/boot0cfg

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 19:01:35 2011 New Revision: 227250 URL: http://svn.freebsd.org/changeset/base/227250 Log: Mark global functions and/or variables in boot0cfg(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified:

svn commit: r227252 - head/usr.sbin/devinfo

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 19:01:48 2011 New Revision: 227252 URL: http://svn.freebsd.org/changeset/base/227252 Log: Mark global functions and/or variables in devinfo(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified:

svn commit: r227251 - head/usr.sbin/chown

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 19:01:41 2011 New Revision: 227251 URL: http://svn.freebsd.org/changeset/base/227251 Log: Mark global functions and/or variables in chown(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified:

svn commit: r227253 - head/usr.sbin/fdread

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 19:01:54 2011 New Revision: 227253 URL: http://svn.freebsd.org/changeset/base/227253 Log: Mark global functions and/or variables in fdread(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified:

svn commit: r227255 - head/usr.sbin/mixer

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 19:02:13 2011 New Revision: 227255 URL: http://svn.freebsd.org/changeset/base/227255 Log: Mark global functions and/or variables in mixer(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified:

svn commit: r227254 - head/usr.sbin/memcontrol

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 19:01:59 2011 New Revision: 227254 URL: http://svn.freebsd.org/changeset/base/227254 Log: Mark global functions and/or variables in memcontrol(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified:

svn commit: r227256 - head/usr.sbin/moused

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 19:02:20 2011 New Revision: 227256 URL: http://svn.freebsd.org/changeset/base/227256 Log: Mark global functions and/or variables in moused(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified:

svn commit: r227257 - head/usr.sbin/pwd_mkdb

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 19:02:25 2011 New Revision: 227257 URL: http://svn.freebsd.org/changeset/base/227257 Log: Mark global functions and/or variables in pwd_mkdb(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified:

svn commit: r227258 - head/usr.sbin/rip6query

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 19:02:31 2011 New Revision: 227258 URL: http://svn.freebsd.org/changeset/base/227258 Log: Mark global functions and/or variables in rip6query(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified:

svn commit: r227259 - head/usr.sbin/rmt

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 19:02:37 2011 New Revision: 227259 URL: http://svn.freebsd.org/changeset/base/227259 Log: Mark global functions and/or variables in rmt(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified:

<    3   4   5   6   7   8   9   10   >