bschmidt
d812d4dc6a
Remove now redundant mac argument.
...
Discussed with: adrian@
2011-12-17 10:32:31 +00:00
bschmidt
49344f6037
Fix some net80211 enum nits:
...
- ic_vap_create() uses an ieee80211_opmode argument
- ieee80211_rate2media() takes an ieee80211_phymode argument
- ieee80211_plcp2rate() takes an ieee80211_phytype argument
- cast to enum ieee80211_protmode and ieee80211_roamingmode to silence
compiler warnings
Submitted by: arundel@
2011-12-17 10:23:17 +00:00
ru
a6ba1663e4
Fixed some of markup.
...
Reviewed by: jhb
2011-12-17 06:57:35 +00:00
dim
a709fcdc55
In usr.bin/mt/mt.c, the c_code member of struct commands should really
...
be an unsigned long, since it will contain values of ioctl request
codes. On 64-bit arches, these will not fit into an int.
MFC after: 1 week
2011-12-17 02:23:30 +00:00
dim
32859c5990
In sbin/devd/devd.h, 'event_proc' and 'eps' are declared as structs. In
...
devd.hh, there are redeclared as classes. Fix the inconsistency.
MFC after: 1 week
2011-12-17 01:54:51 +00:00
dim
f68951a3dd
Disable yet another clang warning when WARNS <= 3.
...
MFC after: 1 week
2011-12-17 01:51:12 +00:00
dim
8c3e7b0062
In usr.bin/tar/tree.c, if you really want to poke to NULL, you must use
...
volatile, otherwise the indirection will not be emitted.
MFC after: 1 week
2011-12-17 01:36:50 +00:00
dim
7654ad9896
In sbin/dhclient, since we know the size of the source strings anyway,
...
we might as well use memcpy; strlcpy is really unnecessary here.
MFC after: 1 week
2011-12-17 01:29:46 +00:00
dim
b10871ad5b
In sbin/dhclient, work around warnings about the size argument to
...
strlcpy appearing to be the size of the source buffer, instead of the
destination.
MFC after: 1 week
2011-12-17 01:19:07 +00:00
dim
47dd4657ea
Use both NO_WFORMAT and NO_WARRAY_BOUNDS for sbin/ipf, it would be too
...
disruptive to actually fix all the warnings, and the code hasn't been
maintained for several years.
MFC after: 1 week
2011-12-17 00:54:09 +00:00
dim
bbe4aa1fe1
In sbin/atm/atmconfig/diag.c, fix a few warnings about format strings
...
not being literals.
MFC after: 1 week
2011-12-17 00:26:45 +00:00
dim
60426ce781
Use NO_WCAST_ALIGN for sbin/gbde, this is more appropriate to fix the
...
alignment warnings than using WARNS=3, and it also works for clang.
MFC after: 1 week
2011-12-17 00:14:40 +00:00
nwhitehorn
8241656bb7
Allow this to work on embedded systems without Open Firmware by making
...
lack of a /chosen non-fatal, and manually removing memory in use by the
kernel from the physical memory map.
Submitted by: rpaulo
2011-12-16 23:46:05 +00:00
dim
30af3079fa
Use NO_WARRAY_BOUNDS for sbin/routed/rtquery.
...
MFC after: 1 week
2011-12-16 23:43:58 +00:00
dim
d9e9968084
Add a NO_WARRAY_BOUNDS setting to bsd.sys.mk, only applicable to clang,
...
to selectively work around warnings in programs that don't use flexible
array members, but instead define arrays of length 1 at the end of the
struct, and then access those beyond their declared bounds.
MFC after: 1 week
2011-12-16 23:42:25 +00:00
nwhitehorn
bbbfdb6367
Zero BSS on start, in case the ELF loader that started the kernel did not
...
do this for us. This can happen on some embedded systems.
Submitted by: rpaulo
2011-12-16 23:40:56 +00:00
dim
b0fe51d189
In contrib/gperf/src/output.cc, use the correct printf length modifier
...
for a ptrdiff_t.
MFC after: 1 week
2011-12-16 23:15:11 +00:00
dim
ecef4f25a6
In sbin/fsdb/fsdbutil.c, work around a clang false positive with printf
...
format warnings and conditional operators. (See LLVM PR 11313 for more
information.)
MFC after: 1 week
2011-12-16 23:09:31 +00:00
dim
e91eea2c9e
In sbin/camcontrol/camcontrol.c, fix a few warnings about format strings
...
not being literals.
MFC after: 1 week
2011-12-16 22:35:19 +00:00
dim
161a99dd74
Define YY_NO_INPUT when building libbinutils, to prevent warnings about
...
unused input() functions emitted by lex.
MFC after: 1 week
2011-12-16 22:19:13 +00:00
dim
f993aa3b86
Fix the incompatible enum conversions in libexec/ypxfr in another, more
...
messy way, so as to not disrupt other yp programs: just add casts to
convert the incompatible enums, as the numerical values are the same
(either by accident, design, or the phase of the moon at that time).
MFC after: 1 week
2011-12-16 22:05:10 +00:00
dim
ca3809987c
Revert r228592, as the non-messy way of fixing ypxfr breaks other yp
...
programs (e.g. usr.sbin/rpc.yppasswdd).
Spotted by: np
MFC after: 1 week
2011-12-16 21:57:44 +00:00
dim
cecb0df44a
In cddl/contrib/opensolaris/cmd/dtrace/dtrace.c, fix some obtuse
...
snprintf tricks.
MFC after: 1 week
2011-12-16 21:48:09 +00:00
dim
4296e211b6
In cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c, a size_t is passed
...
to fprintf as a field width. It should be an int instead, so cast it.
MFC after: 1 week
2011-12-16 21:29:46 +00:00
dim
d01916530c
In games/factor/factor.c, fix a warning about a format string not being
...
a literal.
MFC after: 1 week
2011-12-16 21:24:11 +00:00
dim
4e36a16dc8
Fix some obtuse fprintf tricks in bin/ed.
...
MFC after: 1 week
2011-12-16 21:12:23 +00:00
np
c54854914a
Catch up with new driver ioctls in cxgbe.
...
MFC after: 1 month
2011-12-16 20:38:22 +00:00
jhb
fa881e0cf4
Fire a kevent if necessary after seeking on a regular file. This fixes a
...
case where a kevent would not fire on a regular file if an application read
to EOF and then seeked backwards into the file.
Reviewed by: kib
MFC after: 2 weeks
2011-12-16 20:10:00 +00:00
dim
f5113f1990
Attempt to fix the numerous incompatible enum conversions in
...
libexec/ypxfr in the least disruptive way.
MFC after: 1 week
2011-12-16 19:39:49 +00:00
dim
838b9f84ea
Fix typos in the comments about clang warnings in several
...
sendmail-related Makefiles.
Spotted by: arundel
MFC after: 1 week
2011-12-16 17:02:25 +00:00
dim
eb8ae0b5f9
In contrib/telnet/telnetd/utility.c, fix a few warnings about format
...
strings not being literals.
MFC after: 1 week
2011-12-16 16:53:54 +00:00
dim
6c26696aca
Unfortunately, clang gives warnings about sendmail code that cannot be
...
turned off yet. Since this is contrib code, and we don't really care
about the warnings, just turn make them non-fatal for now.
MFC after: 1 week
2011-12-16 16:32:08 +00:00
dim
9be38353d1
In libexec/rbootd/utils.c, use the correct printf length modifiers for
...
u_int32_t and size_t.
MFC after: 1 week
2011-12-16 16:29:51 +00:00
dim
66612dcd94
In libexec/pppoed/pppoed.c, use the correct printf length modifier for a
...
size_t.
MFC after: 1 week
2011-12-16 16:07:39 +00:00
dim
ef7c6e2e94
Unfortunately, clang gives warnings about sendmail code that cannot be
...
turned off yet. Since this is contrib code, and we don't really care
about the warnings, just turn make them non-fatal for now.
MFC after: 1 week
2011-12-16 15:58:38 +00:00
dim
75be8e3194
In libexec/bootpd/tools/bootptest/print-bootp.c, use the correct printf
...
length modifier for the difference between two pointers.
MFC after: 1 week
2011-12-16 15:55:43 +00:00
pfg
3ac7a716c7
Style cleanups by jh@.
...
Fix a comment from the previous commit.
Use M_ZERO instead of bzero() in ext2_vfsops.c
Add include guards from PR.
PR: 162564
Approved by: jhb (mentor)
MFC after: 2 weeks
2011-12-16 15:47:43 +00:00
dim
59dc1f5c98
In libexec/getty/chat.c, replace && with & in chat_send(). The intent
...
is to test if the CHATDEBUG_SEND bit is set in the chat_debug global.
MFC after: 1 week
2011-12-16 15:44:12 +00:00
dim
f8760fc5b2
In libexec/bootpd/bootpgw/bootpgw.c, add a cast for the remaining
...
minutes of activity, to avoid a warning on platforms where time_t is a
32-bit integer.
MFC after: 1 week
2011-12-16 15:38:11 +00:00
dim
d3f0164628
In cddl/contrib/opensolaris/lib/libdtrace/common/dt_handle.c, some
...
uint64_t values are snprintf'd using %llx. On amd64, uint64_t is
typedef'd as unsigned long, so cast the values to u_longlong_t, as is
done similarly in the rest of the file.
MFC after: 1 week
2011-12-16 15:12:42 +00:00
dim
c9021301d1
In cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c, some
...
uint64_t values are snprintf'd using %llx. On amd64, uint64_t is
typedef'd as unsigned long, so cast the values to u_longlong_t, as is
done similarly in the rest of the file.
MFC after: 1 week
2011-12-16 15:04:47 +00:00
dim
5780802b6c
In lib/libthread_db/arch/i386/libpthread_md.c, clang gives two incorrect
...
warnings about alignment, so turn -Wcast-align off for now.
MFC after: 1 week
2011-12-16 15:00:56 +00:00
glebius
82ed6bc816
Rename ifcarp.c to carp.c
2011-12-16 14:30:58 +00:00
glebius
d5d5148ff9
- Rename if_carp.ko to carp.ko.
...
- carp.ko depends on sha1.c
2011-12-16 14:28:34 +00:00
mav
bdf9f67646
Some formatting fixes.
...
Submitted by: ru
2011-12-16 14:19:46 +00:00
glebius
25d9ab0f4e
Since size of struct in_aliasreq has just been changed in r228571,
...
and thus ifconfig(8) needs recompile, it is a good chance to make
parameter checks on SIOCAIFADDR arguments more strict.
2011-12-16 13:30:17 +00:00
se
a1d123baf1
Fix format string Z --> z, since the former is a deprecated and (in FreeBSD)
...
unsupported form of the latter. This change has been reviewed and accepted
in the -hackers list.
Submitted by: Alexander Best
Reviewed by: David Schulz
2011-12-16 12:42:02 +00:00
glebius
27a36f6ac8
A major overhaul of the CARP implementation. The ip_carp.c was started
...
from scratch, copying needed functionality from the old implemenation
on demand, with a thorough review of all code. The main change is that
interface layer has been removed from the CARP. Now redundant addresses
are configured exactly on the interfaces, they run on.
The CARP configuration itself is, as before, configured and read via
SIOCSVH/SIOCGVH ioctls. A new prefix created with SIOCAIFADDR or
SIOCAIFADDR_IN6 may now be configured to a particular virtual host id,
which makes the prefix redundant.
ifconfig(8) semantics has been changed too: now one doesn't need
to clone carpXX interface, he/she should directly configure a vhid
on a Ethernet interface.
To supply vhid data from the kernel to an application the getifaddrs(8)
function had been changed to pass ifam_data with each address. [1]
The new implementation definitely closes all PRs related to carp(4)
being an interface, and may close several others. It also allows
to run a single redundant IP per interface.
Big thanks to Bjoern Zeeb for his help with inet6 part of patch, for
idea on using ifam_data and for several rounds of reviewing!
PR: kern/117000, kern/126945, kern/126714, kern/120130, kern/117448
Reviewed by: bz
Submitted by: bz [1]
2011-12-16 12:16:56 +00:00
kib
b646d3f699
Document 'findstack'.
...
MFC after: 1 week
2011-12-16 11:52:33 +00:00
kib
02726a0b71
Add 'findstack' ddb command to search either the thread kernel stack
...
or cached stack containing the specified kernel virtual address.
Discussed with: pho
MFC after: 1 week
2011-12-16 11:44:20 +00:00