Ed Schouten
641835f465
Mark global functions and/or variables in xstr(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:39 +00:00
Ed Schouten
e5ec905575
Mark global functions and/or variables in whois(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:33 +00:00
Ed Schouten
94cd938578
Mark global functions and/or variables in which(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:26 +00:00
Ed Schouten
558b00f5a1
Mark global functions and/or variables in whereis(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:19 +00:00
Ed Schouten
48ef17602b
Mark global functions and/or variables in unifdef(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:00 +00:00
Ed Schouten
e7b3338485
Mark global functions and/or variables in paste(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:53 +00:00
Ed Schouten
df6dd6933d
Mark global functions and/or variables in m4(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:48 +00:00
Ed Schouten
86350df6fe
Mark global functions and/or variables in lam(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:41 +00:00
Ed Schouten
357050fc0e
Mark global functions and/or variables in fstat(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:36 +00:00
Ed Schouten
cb230716e3
Mark global functions and/or variables in expand(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:30 +00:00
Ed Schouten
43ad4b4511
Mark global functions and/or variables in enigma(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:23 +00:00
Ed Schouten
305700d983
Mark global functions and/or variables in compress(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:16 +00:00
Ed Schouten
8d34a0b7bc
Mark global functions and/or variables in comm(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:10 +00:00
Ed Schouten
c24aea83fa
Mark global functions and/or variables in checknr(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:03 +00:00
Ed Schouten
f64efe8b60
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 variables
in at.c.
2011-11-06 17:32:29 +00:00
Andrey V. Elsukov
1fd45acda6
To be in sync with GEOM_PART_BSD limit the maximum number of supported
...
partitions to 20.
MFC after: 1 week
2011-11-06 17:30:32 +00:00
Ed Schouten
ac75fa8849
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 strings.
2011-11-06 17:20:44 +00:00
Ed Schouten
ee47d09921
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) bugs by adding newlines and removing
unneeded spaces from function declarations.
2011-11-06 16:52:26 +00:00
Ed Schouten
60bd06dafc
Mark all global variables static for mptable(1).
...
While there, remove basetableEntryTypes, which became unused in r71209.
2011-11-06 16:47:50 +00:00
Ed Schouten
4c46bfb6dc
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().
2011-11-06 16:40:17 +00:00
Ed Schouten
acd29a915f
Simplify inclusion of the tsptype array a bit.
...
We don't need this array in timed.c -- only readmsg.c.
2011-11-06 16:37:15 +00:00
Dimitry Andric
130515293b
When one attempts to compile the tree with -march=i386, which also used
...
to be gcc's default before r198344, calls to atomic builtins will not be
expanded inline. Instead, they will be generated as calls to external
functions (e.g. __sync_fetch_and_add_N), leading to linking errors later
on.
Put in a seatbelt that disables use of atomic builtins in libstdc++ and
llvm, when tuning specifically for the real i386 CPU. This does not
protect against all possible issues, but it is better than nothing.
2011-11-06 14:07:23 +00:00
Antoine Brodin
393404f7d9
Add more obsolete files.
2011-11-06 14:00:18 +00:00
Mikolaj Golub
fc06cd427e
Cache SO_REUSEPORT socket option in inpcb-layer in order to avoid
...
inp_socket->so_options dereference when we may not acquire the lock on
the inpcb.
This fixes the crash due to NULL pointer dereference in
in_pcbbind_setup() when inp_socket->so_options in a pcb returned by
in_pcblookup_local() was checked.
Reported by: dave jones <s.dave.jones@gmail.com>, Arnaud Lacombe <lacombar@gmail.com>
Suggested by: rwatson
Glanced by: rwatson
Tested by: dave jones <s.dave.jones@gmail.com>
2011-11-06 10:47:20 +00:00
Mikolaj Golub
29381b363b
Before dereferencing intotw() check for NULL, the same way as it is
...
done for in_pcb (see r157474).
MFC after: 1 week
2011-11-06 09:29:52 +00:00
Mikolaj Golub
ec95b70995
Fix the typo made in r157474.
...
MFC after: 3 days
2011-11-06 09:17:48 +00:00
Ed Schouten
6291cd02cb
Correct the change made in r227166.
...
This function is only compiled in when building WITH_AUDIT.
2011-11-06 09:09:45 +00:00
Ed Schouten
15f9b56845
Add missing static keywords to xinstall(1)
2011-11-06 08:19:07 +00:00
Ed Schouten
8df975a218
Add missing static keywords to wc(1)
2011-11-06 08:19:00 +00:00
Ed Schouten
d7698e0766
Add missing static keywords to wall(1)
2011-11-06 08:18:55 +00:00
Ed Schouten
d11cba9c89
Add missing static keywords to w(1)
2011-11-06 08:18:47 +00:00
Ed Schouten
bb39d408b1
Add missing static keywords to vis(1)
2011-11-06 08:18:42 +00:00
Ed Schouten
4ae55b63c3
Add missing static keywords to uuencode(1)
2011-11-06 08:18:35 +00:00
Ed Schouten
69c5bce6ee
Add missing static keywords to usbhidctl(1)
2011-11-06 08:18:30 +00:00
Ed Schouten
793cdace4d
Add missing static keywords to usbhidaction(1)
2011-11-06 08:18:23 +00:00
Ed Schouten
90a29505f5
Add missing static keywords to units(1)
2011-11-06 08:18:17 +00:00
Ed Schouten
7f3cfdffbc
Add missing static keywords to uniq(1)
2011-11-06 08:18:11 +00:00
Ed Schouten
73827c1062
Add missing static keywords to unexpand(1)
2011-11-06 08:18:05 +00:00
Ed Schouten
4b7373b886
Add missing static keywords to uname(1)
2011-11-06 08:17:59 +00:00
Ed Schouten
d9079e3b3e
Add missing static keywords to ul(1)
2011-11-06 08:17:53 +00:00
Ed Schouten
4fbf47feda
Add missing static keywords to tsort(1)
2011-11-06 08:17:47 +00:00
Ed Schouten
1dca6e4e8a
Add missing static keywords to tr(1)
2011-11-06 08:17:42 +00:00
Ed Schouten
85528ab71d
Add missing static keywords to tee(1)
2011-11-06 08:17:35 +00:00
Ed Schouten
257edbd36a
Add missing static keywords to tcopy(1)
2011-11-06 08:17:29 +00:00
Ed Schouten
b8d48d6233
Add missing static keywords to talk(1)
2011-11-06 08:17:23 +00:00
Ed Schouten
c7c497f1c5
Add missing static keywords to tail(1)
2011-11-06 08:17:17 +00:00
Ed Schouten
973aa6bc58
Add missing static keywords to split(1)
2011-11-06 08:17:11 +00:00
Ed Schouten
cfbd8d469b
Add missing static keywords to seq(1)
2011-11-06 08:17:05 +00:00
Ed Schouten
af397f37ab
Add missing static keywords to rwho(1)
2011-11-06 08:16:59 +00:00
Ed Schouten
31dd0180e9
Add missing static keywords to rwall(1)
2011-11-06 08:16:53 +00:00