svn commit: r228471 - in head/sys: boot/arm/at91/libat91 dev/cm dev/de dev/fdc dev/pccard dev/spibus dev/xen/netback pc98/cbus

2011-12-13 Thread Ed Schouten
Author: ed Date: Tue Dec 13 14:06:01 2011 New Revision: 228471 URL: http://svn.freebsd.org/changeset/base/228471 Log: Replace `inline static' by `static inline'. If I interpret the C standard correctly, the storage specifier should be placed before the inline keyword. While at it, replace

svn commit: r228469 - in head/sys: amd64/include arm/include i386/include ia64/include mips/include ofed/include/asm powerpc/include sparc64/include

2011-12-13 Thread Ed Schouten
Author: ed Date: Tue Dec 13 13:38:03 2011 New Revision: 228469 URL: http://svn.freebsd.org/changeset/base/228469 Log: Replace __signed by signed. The signed keyword is an integral part of the C syntax. There's no need to use __signed. Modified: head/sys/amd64/include/_types.h head/sy

svn commit: r228468 - in head: include sys/dev/uart sys/sys usr.bin/mail

2011-12-13 Thread Ed Schouten
Author: ed Date: Tue Dec 13 13:32:56 2011 New Revision: 228468 URL: http://svn.freebsd.org/changeset/base/228468 Log: Replace __const by const in all non-contributed source code. As C1X is close to being released, there is no need to wrap around a feature that is already part of C90. Most

svn commit: r228458 - head/sbin/dumpfs

2011-12-13 Thread Ed Schouten
Author: ed Date: Tue Dec 13 09:01:44 2011 New Revision: 228458 URL: http://svn.freebsd.org/changeset/base/228458 Log: Staticify dumpfs. This tool only consists of a single C file, so we can simply mark everything except main() static. This seems to shave off about 8% of the binary size.

svn commit: r228437 - head/usr.sbin/kbdcontrol

2011-12-12 Thread Ed Schouten
Author: ed Date: Mon Dec 12 12:33:38 2011 New Revision: 228437 URL: http://svn.freebsd.org/changeset/base/228437 Log: Add missing static and const keywords to kbdcontrol. None of the symbols provided by kbdcontrol.c are used by other source files of this binary. Slightly reduce the binary

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 WWW: http://80386.nl/ pgprJnMsCJzDC.pgp Description: PGP signature

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

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: head/bi

svn commit: r228422 - head/sbin/rcorder

2011-12-11 Thread Ed Schouten
Author: ed Date: Sun Dec 11 20:48:40 2011 New Revision: 228422 URL: http://svn.freebsd.org/changeset/base/228422 Log: Add more static keywords to rcorder(8). The global variables and functions provided by rcorder.c are not used in the other C files, as the other C files only provide memor

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: head/sb

svn commit: r228416 - head/usr.sbin/powerd

2011-12-11 Thread Ed Schouten
Author: ed Date: Sun Dec 11 19:22:42 2011 New Revision: 228416 URL: http://svn.freebsd.org/changeset/base/228416 Log: Add missing static keyword. All global variables and functions in powerd are marked static, except this array of strings. Add the keyword, for consistency. Modified: he

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. Modified:

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. Modif

svn commit: r228406 - head/bin/stty

2011-12-11 Thread Ed Schouten
Author: ed Date: Sun Dec 11 09:56:48 2011 New Revision: 228406 URL: http://svn.freebsd.org/changeset/base/228406 Log: Move 3.5 KB from the data segment to the text segment. The `struct modes' are only used by the getter-functions in the same file, so we can safely mark them static and con

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: head/libexec/comsat/c

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 is

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. Modifie

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

Re: svn commit: r227997 - vendor/libcxxrt/8931d9e5180830a5433d16ae6b3ad8dd9e629512

2011-12-07 Thread Ed Schouten
Uli, * Ulrich Spörlein , 20111207 00:07: > Please consider using dated snapshots instead, e.g. -MM-DD, etc. Maybe a combination of both? -MM-DD-shortrev -- Ed Schouten WWW: http://80386.nl/ pgplAGBgtv7s6.pgp Description: PGP signature

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: 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 head/s

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: head/sys/amd64/linux32/

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 head/s

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' pa

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

2011-11-16 Thread Ed Schouten
Hi Adrian, * Adrian Chadd , 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, --

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

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

2011-11-09 Thread Ed Schouten
* Fabien Thomas , 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 and /sys/conf/kern.mk. Thanks, -- Ed Schouten WWW: http

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: head/sys/tools/makeobj

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 their

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 read-

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: 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 ensure

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 bina

svn commit: r227294 - head/sys/sys

2011-11-06 Thread Ed Schouten
Author: ed Date: Mon Nov 7 07:09:38 2011 New Revision: 227294 URL: http://svn.freebsd.org/changeset/base/227294 Log: SDT's struct sdt_argtype can be marked static everywhere. It is only passed to SYSINIT/SYSUNINIT. Modified: head/sys/sys/sdt.h Modified: head/sys/sys/sdt.h =

svn commit: r227293 - in head/sys: arm/arm arm/xscale/pxa cam cam/ata cam/scsi cddl/dev/cyclic cddl/dev/fbt compat/linux dev/aac dev/acpi_support dev/acpica dev/acpica/Osd dev/ahci dev/amr dev/ath ...

2011-11-06 Thread Ed Schouten
Author: ed Date: Mon Nov 7 06:44:47 2011 New Revision: 227293 URL: http://svn.freebsd.org/changeset/base/227293 Log: Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs. This means that their use is restricted to a single C file. Modified: head/sys/arm/arm/vm_machdep.c

Re: svn commit: r227164 - head/usr.bin/du

2011-11-06 Thread Ed Schouten
Hi Alexander, * Alexander Best , 2006 23:30: > +The > +.Fl a, d > +and > +.Fl s > +options are mutually exclusive. > +.Pp > +The > +.Fl H, L > +and > +.Fl P > +options are mutually exclusive. This can already be derived from the SYNOPSIS, right? -- E

Re: svn commit: r227164 - head/usr.bin/du

2011-11-06 Thread Ed Schouten
so uses the `*flag' variables, so there's no reason why we can't just use `aflag'. Does this patch look good to you? -- Ed Schouten WWW: http://80386.nl/ Index: usr.bin/du/du.c === --- usr.bin/du/du.c (revis

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

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 20:30:21 2011 New Revision: 227269 URL: http://svn.freebsd.org/changeset/base/227269 Log: Partially revert r227233. The privs.h header is not only used by at(1), it's also used by atrun(8). Just let the code the way it used to be (for now). Reported by: k

svn commit: r227267 - in head/sys: dev/iscsi/initiator fs/nwfs fs/smbfs sys ufs/ufs

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 20:16:50 2011 New Revision: 227267 URL: http://svn.freebsd.org/changeset/base/227267 Log: Remove MALLOC_DECLAREs of nonexisting malloc-pools. After careful grepping, it seems none of these pools can be found in our source tree. They are not in use, nor are they

svn commit: r227261 - head/usr.sbin/spray

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

svn commit: r227260 - head/usr.sbin/snapinfo

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

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: head/usr.sbin/r

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: head/usr.

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: head/usr.s

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: head/usr.sbi

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: head/usr.sbin

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: head/usr

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: head/usr.sbi

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: head/usr.sb

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: head/usr.sbin

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: head/usr.s

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: head/usr.sbin/a

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: head/usr.bin/xstr

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: head/usr.bin/who

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: head/usr.bin/whi

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: head/usr.bin/w

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: head/usr.bin/u

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: head/usr.bin/pas

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: head/usr.bin/m4/gnu

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: head/usr.bin/lam/l

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: head/usr.bin/fst

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: head/usr.bin/ex

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: head/usr.bin/en

svn commit: r227236 - head/usr.bin/compress

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

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: head/usr.bin/c

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: head/usr.bin/comm

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 var

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 st

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) b

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 Modifi

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 main(

svn commit: r227221 - head/usr.sbin/timed/timed

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 16:37:15 2011 New Revision: 227221 URL: http://svn.freebsd.org/changeset/base/227221 Log: Simplify inclusion of the tsptype array a bit. We don't need this array in timed.c -- only readmsg.c. Modified: head/usr.sbin/timed/timed/readmsg.c head/usr.sbin/timed/

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

2011-11-06 Thread Ed Schouten
read through 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'.

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: 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: 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: 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: 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: r227197 - head/usr.bin/uuencode

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

svn commit: r227196 - head/usr.bin/usbhidctl

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:18:30 2011 New Revision: 227196 URL: http://svn.freebsd.org/changeset/base/227196 Log: Add missing static keywords to usbhidctl(1) Modified: head/usr.bin/usbhidctl/usbhid.c Modified: head/usr.bin/usbhidctl/usbhid.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: 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: 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: r227190 - head/usr.bin/ul

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:53 2011 New Revision: 227190 URL: http://svn.freebsd.org/changeset/base/227190 Log: Add missing static keywords to ul(1) Modified: head/usr.bin/ul/ul.c Modified: head/usr.bin/ul/ul.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: 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: 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: 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: 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: hea

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: 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: 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: 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: 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: 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: 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: 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: 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: 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

<    4   5   6   7   8   9   10   11   12   13   >