openbsd
10 years agoSince all static leases are in one file, /etc/dhclient.conf, there is no
krw [Mon, 12 May 2014 13:12:41 +0000 (13:12 +0000)]
Since all static leases are in one file, /etc/dhclient.conf, there is no
'wrong interface' specification. So display that error message only for
non-static leases. i.e. when reading /var/db/dhclient.leases.<if>.

10 years agoNo need for a dev_bsize variable that is always set to 512,
krw [Mon, 12 May 2014 12:16:53 +0000 (12:16 +0000)]
No need for a dev_bsize variable that is always set to 512,
a.k.a. DEV_BSIZE. So just use DEV_BSIZE.

Confirmed to still work on 4k-byte sector disks by David Vasek.

10 years agoBackport FreeBSD's HID parser in order to properly parse `moderm'
mpi [Mon, 12 May 2014 09:50:44 +0000 (09:50 +0000)]
Backport FreeBSD's HID parser in order to properly parse `moderm'
input device descriptors, notably if they include an Item with an
Usage array (Min-Max range) and others single Usage elements.

Tested by many, thanks!  ok andre@

10 years agoIncludes a router altert option (RAO) in IGMP packets. Without this
mpi [Mon, 12 May 2014 09:15:00 +0000 (09:15 +0000)]
Includes a router altert option (RAO) in IGMP packets.   Without this
option, required by the RFC2236, some L3 switches do not examine the
packets.

Based on FreeBSD's r14622 via Florian Riehm on tech@. ok bluhm@, jca@

10 years agoMake ifconfig do something intelligent based on the required length of
beck [Mon, 12 May 2014 08:47:37 +0000 (08:47 +0000)]
Make ifconfig do something intelligent based on the required length of
WEP keys rather then being silently dumb, so when using WEP:
1) If the key is a plausible size try to use it.
2) If they key would be a plausible size with '0x' in front of it, add that.
3) If the key is not a plausible size, emit a warning and do not try to use it.
ok sthen@

10 years agoreplace realloc(p, N * M) with reallocarray(p, N, M) and remove some
halex [Sun, 11 May 2014 21:25:07 +0000 (21:25 +0000)]
replace realloc(p, N * M) with reallocarray(p, N, M) and remove some
pointless cleanup if we're obviously going to die anyway

ok guenther@

10 years agostruct direct's d_ino is no longer the same size as an ino_t, so copy it
guenther [Sun, 11 May 2014 21:14:03 +0000 (21:14 +0000)]
struct direct's d_ino is no longer the same size as an ino_t, so copy it
for the call to bsearch()

problem report and ok krw@

10 years agoThe relation between uhci(4), ohci(4) and their root hub device is
mpi [Sun, 11 May 2014 16:33:21 +0000 (16:33 +0000)]
The relation between uhci(4), ohci(4) and their root hub device is
delicate.  HC drivers do not always accept to be left alone.

I don't know if it is a love crisis, but apparently receiving a root
hub status change interrupt before having an uhub(4) attached breaks
resume.

So make sure the root hub is re-attached before interrupt get enabled.
It is safe to do it during DVACT_RESUME since attaching root hubs do
not require any USB transfer.

Based on a diff from yasuoka@, fix a regression introduced in last
commit an reported by Abel Abraham Camarillo Ojeda on tech@ and Nils
R on bugs@.

10 years agoTweak DHCPREQUEST log message to omit 'port N', since the port is not
krw [Sun, 11 May 2014 14:00:52 +0000 (14:00 +0000)]
Tweak DHCPREQUEST log message to omit 'port N', since the port is not
set at that point, and is always set to 67 in send_packet().

10 years agoneed syscall.h..
deraadt [Sun, 11 May 2014 12:59:31 +0000 (12:59 +0000)]
need syscall.h..

10 years agoRework/restore recorded lease handling. Actually use 'lease'
krw [Sun, 11 May 2014 12:40:37 +0000 (12:40 +0000)]
Rework/restore recorded lease handling. Actually use 'lease'
statements in dhclient.conf.

Recorded and static leases should now be bound to interfaces when
appropriate.

.... Ken

10 years agoMore KNF.
jsing [Sun, 11 May 2014 12:20:20 +0000 (12:20 +0000)]
More KNF.

10 years agoKNF.
jsing [Sun, 11 May 2014 12:05:27 +0000 (12:05 +0000)]
KNF.

10 years agozap double full stop; ok schwarze
jmc [Sun, 11 May 2014 11:00:55 +0000 (11:00 +0000)]
zap double full stop; ok schwarze

10 years agohide two printfs behind an ifdef DEBUG; spotted by miod@
jasper [Sun, 11 May 2014 09:23:49 +0000 (09:23 +0000)]
hide two printfs behind an ifdef DEBUG; spotted by miod@

10 years agoFix configuration of static IPv6 default gateway
rpe [Sun, 11 May 2014 08:23:46 +0000 (08:23 +0000)]
Fix configuration of static IPv6 default gateway
- Append IPv4 default gw to /tmp/mygate instead of overwriting it.
- Delete /tmp/mygate at the beginning of configure_ifs() to reset
  previous default gw config on installer restarts.

pointed out by todd@
OK halex@ krw@

10 years agosync
deraadt [Sun, 11 May 2014 01:40:02 +0000 (01:40 +0000)]
sync

10 years agoMove the increment of uvmexp.softs back to the caller of mi_ast():
guenther [Sun, 11 May 2014 00:12:43 +0000 (00:12 +0000)]
Move the increment of uvmexp.softs back to the caller of mi_ast():
it needs to be done atomicly on some MP archs and we don't have
atomic_add_int() everywhere yet.  Also, mi_ast() was meant to be inline.

noted by miod@

10 years agoPull in <sys/user.h> before <sys/syscall*.h>
guenther [Sun, 11 May 2014 00:05:38 +0000 (00:05 +0000)]
Pull in <sys/user.h> before <sys/syscall*.h>

10 years agoremove unused variable
chl [Sun, 11 May 2014 00:03:14 +0000 (00:03 +0000)]
remove unused variable

ok tedu@

10 years agocatch up with the inet(3) rename; this commit missed in previous
jmc [Sat, 10 May 2014 23:31:40 +0000 (23:31 +0000)]
catch up with the inet(3) rename; this commit missed in previous
ok guenther

10 years agospello in comment and tweak DUMP_BOOT_DESC a tad
jasper [Sat, 10 May 2014 22:37:12 +0000 (22:37 +0000)]
spello in comment and tweak DUMP_BOOT_DESC a tad

10 years agovarious format string fixes and remove -Wno-format from octeon
jasper [Sat, 10 May 2014 22:25:16 +0000 (22:25 +0000)]
various format string fixes and remove -Wno-format from octeon

feedback/ok miod@

10 years agosigh, another case of user.h before syscall_mi.h
deraadt [Sat, 10 May 2014 21:58:56 +0000 (21:58 +0000)]
sigh, another case of user.h before syscall_mi.h

10 years agofix typo in function prototype
chl [Sat, 10 May 2014 21:50:40 +0000 (21:50 +0000)]
fix typo in function prototype

ok gilles@

10 years agoFix SSL breakage that I accidentally introduced with my previous commit.
reyk [Sat, 10 May 2014 21:34:07 +0000 (21:34 +0000)]
Fix SSL breakage that I accidentally introduced with my previous commit.

10 years agoremove warning by adding explicit parentheses around && within ||
chl [Sat, 10 May 2014 21:21:09 +0000 (21:21 +0000)]
remove warning by adding explicit parentheses around && within ||

ok sperreault@

10 years agoremove unused variable
chl [Sat, 10 May 2014 20:09:38 +0000 (20:09 +0000)]
remove unused variable

ok shadchin@

10 years agoRemove -Wno-format.
kettenis [Sat, 10 May 2014 19:07:43 +0000 (19:07 +0000)]
Remove -Wno-format.

10 years agoAllow -p prefix to override user home directory for chroot() (Like
chris [Sat, 10 May 2014 19:07:25 +0000 (19:07 +0000)]
Allow -p prefix to override user home directory for chroot() (Like
openbsd-apache ServerRoot behavior)

Work continues to unify nginx behavior (Principle of Least Astonishment)

ok henning@

10 years agoDisable speedstep instead of panicing if the high and low speeds are the same.
guenther [Sat, 10 May 2014 18:59:29 +0000 (18:59 +0000)]
Disable speedstep instead of panicing if the high and low speeds are the same.

Problem noted by Benjamin Baier (programmer (at) netzbasis.de)
improvements and ok kettenis@

10 years agoWe print time_t by casting to "long long" even in the kernel.
kettenis [Sat, 10 May 2014 18:46:20 +0000 (18:46 +0000)]
We print time_t by casting to "long long" even in the kernel.

ok deraadt@

10 years agoSidestep format string issue by sanitizing a bit of debug code.
kettenis [Sat, 10 May 2014 18:41:55 +0000 (18:41 +0000)]
Sidestep format string issue by sanitizing a bit of debug code.

ok deraadt@

10 years agoplease, if there is any chance you've ever encountered the same command
deraadt [Sat, 10 May 2014 18:15:31 +0000 (18:15 +0000)]
please, if there is any chance you've ever encountered the same command
during install time, be more careful here.

10 years agofix MALLOC_STATS code that was broken in rev 1.159, not compiled in by default
otto [Sat, 10 May 2014 18:14:55 +0000 (18:14 +0000)]
fix MALLOC_STATS code that was broken in rev 1.159, not compiled in by default

10 years agoAllow nginx to chroot to a directory other than /var/www
chris [Sat, 10 May 2014 17:48:09 +0000 (17:48 +0000)]
Allow nginx to chroot to a directory other than /var/www

ok henning@

10 years agoFix v6_defroute() for automatic installation.
rpe [Sat, 10 May 2014 17:25:21 +0000 (17:25 +0000)]
Fix v6_defroute() for automatic installation.

OK krw@ halex@

10 years agobring things syscall_mi.h needs into scope earlier
deraadt [Sat, 10 May 2014 16:56:23 +0000 (16:56 +0000)]
bring things syscall_mi.h needs into scope earlier

10 years agobring things syscall_mi.h needs into scope earlier
deraadt [Sat, 10 May 2014 16:48:36 +0000 (16:48 +0000)]
bring things syscall_mi.h needs into scope earlier
ok guenther

10 years agoGive more(1) its own help file, shorter than the one for less(1).
schwarze [Sat, 10 May 2014 16:45:23 +0000 (16:45 +0000)]
Give more(1) its own help file, shorter than the one for less(1).
The helpfile itself was prepared by jmc@, the glue by me.
OK millert@ jmc@

10 years agoFix formwat string. Cast pointer to long and print it using %lx since %p
kettenis [Sat, 10 May 2014 12:36:22 +0000 (12:36 +0000)]
Fix formwat string.  Cast pointer to long and print it using %lx since %p
prefixes the address with 0x which we want to avoid here.

10 years agoFix a few bad indents
claudio [Sat, 10 May 2014 12:30:27 +0000 (12:30 +0000)]
Fix a few bad indents

10 years agoA few more straightforward format string fixes.
kettenis [Sat, 10 May 2014 12:29:58 +0000 (12:29 +0000)]
A few more straightforward format string fixes.

10 years agoFormat string fixes for bus_addr_t and bus_size_t, which are u_long everywhere.
kettenis [Sat, 10 May 2014 12:20:38 +0000 (12:20 +0000)]
Format string fixes for bus_addr_t and bus_size_t, which are u_long everywhere.

10 years agoSchizo registers are all 64-bit, so use u_int64_t to store them and print them
kettenis [Sat, 10 May 2014 12:18:38 +0000 (12:18 +0000)]
Schizo registers are all 64-bit, so use u_int64_t to store them and print them
using %llx/%llb.

10 years agoFormat string fixes for printing interrupt vectors.
kettenis [Sat, 10 May 2014 12:15:19 +0000 (12:15 +0000)]
Format string fixes for printing interrupt vectors.

10 years agoSome straightforward format string fixes. Also, print both the tx and rx
kettenis [Sat, 10 May 2014 11:49:31 +0000 (11:49 +0000)]
Some straightforward format string fixes.  Also, print both the tx and rx
interrupt vector numbers instead of printing rx; pointed out by florian@

10 years agoExtend the connection and session FSMs so that connection failure is
claudio [Sat, 10 May 2014 11:30:47 +0000 (11:30 +0000)]
Extend the connection and session FSMs so that connection failure is
handled more gracefully. Losing the TCP connection no longer results
in an unrecoverable stop requiring a restart of iscsid.

10 years agoMove the task cleanup from the task fail callback to taskq_cleanup.
claudio [Sat, 10 May 2014 11:28:02 +0000 (11:28 +0000)]
Move the task cleanup from the task fail callback to taskq_cleanup.
This makes the one failure callback a lot simpler.

10 years agoFactor out the common ast bits into mi_ast()
guenther [Sat, 10 May 2014 05:33:00 +0000 (05:33 +0000)]
Factor out the common ast bits into mi_ast()

ok deraadt@

10 years ago__bounded => __attribute__((__bounded__
djm [Sat, 10 May 2014 01:38:10 +0000 (01:38 +0000)]
__bounded => __attribute__((__bounded__

10 years agoVarious cleanup in incard():
schwarze [Fri, 9 May 2014 23:56:26 +0000 (23:56 +0000)]
Various cleanup in incard():
* get_line() always returns the same non-NULL pointer,
so testing the return value is useless.
* Garbage collect the unused variable *line.
* Check for end-of-buffer before parsing the next word instead of after it.
* Skip strlen() when the length has been measured three lines before anyway.
* Do not initialize local variables over and over again.
feedback and ok pjanzen@

10 years agoFix a mini-bug reported by pjanzen@:
schwarze [Fri, 9 May 2014 23:39:10 +0000 (23:39 +0000)]
Fix a mini-bug reported by pjanzen@:
When entering card names, you can use multiple words (like KING OF SPADES).
If you entered more than one consecutive blank character between words,
the function incard() took that as end-of-string and ignored the rest.
Fix this by dropping duplicate blanks up front, in get_line().
Patch simplified by me, ok pjanzen@.

While here, use beep(3) in an adjacent line instead of manually fiddling
with control characters, suggested by pjanzen@.

10 years agoTypo in C99 field initializer introduced in r1.3;
miod [Fri, 9 May 2014 22:29:20 +0000 (22:29 +0000)]
Typo in C99 field initializer introduced in r1.3;
reported by Steven Chamberlain

10 years agowording improvements; David Vasek
deraadt [Fri, 9 May 2014 22:15:44 +0000 (22:15 +0000)]
wording improvements; David Vasek

10 years agopjanzen pointed out that case is irrelevant, so document it; while here,
jmc [Fri, 9 May 2014 21:53:42 +0000 (21:53 +0000)]
pjanzen pointed out that case is irrelevant, so document it; while here,
zap an old workaround needed to insert a space - it's now useless (was
actually generating a second space);

original diff from pjanzen

10 years agozap the commented out stuff from this file: it mainly pertains to other
jmc [Fri, 9 May 2014 21:51:50 +0000 (21:51 +0000)]
zap the commented out stuff from this file: it mainly pertains to other
systems, and our page is sufficiently far away from upstream to justify it;

ok millert

10 years agostop casting sizeof to int
tedu [Fri, 9 May 2014 21:30:11 +0000 (21:30 +0000)]
stop casting sizeof to int

10 years agoTweak response file example:
rpe [Fri, 9 May 2014 21:15:17 +0000 (21:15 +0000)]
Tweak response file example:
- "Server?" -> "HTTP Server?"
- Use more appropriate public ssh key type

OK deraadt@ krw@

10 years agoprint interface name with queues in "systat q"; ok henning
sthen [Fri, 9 May 2014 21:03:43 +0000 (21:03 +0000)]
print interface name with queues in "systat q"; ok henning

10 years agoReplace Apache v2 license with ISC license.
matthew [Fri, 9 May 2014 20:45:49 +0000 (20:45 +0000)]
Replace Apache v2 license with ISC license.

Thanks to Google for agreeing to offer the code under more agreeable
licensing terms!

10 years agoformat string fixes and removal of -Wno-format for sparc kernels.
miod [Fri, 9 May 2014 20:15:06 +0000 (20:15 +0000)]
format string fixes and removal of -Wno-format for sparc kernels.

10 years agoMake sure to override PIE_DEFAULT when building a cross-gcc4
miod [Fri, 9 May 2014 20:14:18 +0000 (20:14 +0000)]
Make sure to override PIE_DEFAULT when building a cross-gcc4

10 years agoFormat string fixes and removal of -Wno-format for *ppc kernels.
miod [Fri, 9 May 2014 18:16:15 +0000 (18:16 +0000)]
Format string fixes and removal of -Wno-format for *ppc kernels.

10 years agomove some remnants of more behaviour to the compat section, and use Xr for
jmc [Fri, 9 May 2014 17:30:34 +0000 (17:30 +0000)]
move some remnants of more behaviour to the compat section, and use Xr for
refs to more instead of Nm;

10 years agoadd note about qemu bug
sf [Fri, 9 May 2014 14:44:56 +0000 (14:44 +0000)]
add note about qemu bug

10 years agoModernize spelling. 'Mimick' -> 'Mimic' in comment.
krw [Fri, 9 May 2014 13:56:33 +0000 (13:56 +0000)]
Modernize spelling. 'Mimick' -> 'Mimic' in comment.

10 years agoFix '-b' option to work with the superblock locations output by newfs
krw [Fri, 9 May 2014 13:19:34 +0000 (13:19 +0000)]
Fix '-b' option to work with the superblock locations output by newfs
on 4096-byte sector disks. No-op on 512-byte sector disks.

Adhering to the bedrock idea that ffs will *never* use anything but
512-byte block disk addressing (a.k.a. daddr_t), and believing that
the 'fake' bread()/bwrite() functions should always be using 512-btye
block numbers like their kernel big brothers, nuke the computed
dev_bsize and use DEV_BSIZE for conversions to/from byte offsets.

Spotted and various fixes tested by David Vasek.

Still to fix: scanning for superblocks on 4K disks.

ok otto@

10 years agoAdds a couple tests for relayd parser, specially recent modifications reyk@ did
andre [Fri, 9 May 2014 11:53:28 +0000 (11:53 +0000)]
Adds a couple tests for relayd parser, specially recent modifications reyk@ did
to the grammar.

ok reyk

10 years agoAdds $relayd->{dummyrun} and $client->{noclient} flags to relayd tests
andre [Fri, 9 May 2014 11:49:26 +0000 (11:49 +0000)]
Adds $relayd->{dummyrun} and $client->{noclient} flags to relayd tests
framework. These flags can be set from test file which eases performing
dry-runs of relayd long enough to do relayd.conf parsing, thus enabling the
grammar/parser-only tests.  While here, fix and improves args-http-mark.pl to a
correct use-case.

ok reyk

10 years agoPlug an xfer leak when detaching root hubs.
mpi [Fri, 9 May 2014 11:01:06 +0000 (11:01 +0000)]
Plug an xfer leak when detaching root hubs.

This leak is similar to the public xfer leak #1 that was affecting
device interrupt pipes except that root hubs are rarely detached.

Note that this xfer is never associated to any TD and is just used
to indicate that some of the HC ports has changed status, so there
is no need to flag it as "done" before completing it.

10 years agoWe should use the highest possible priority for routes to local addresses.
mpi [Fri, 9 May 2014 09:23:56 +0000 (09:23 +0000)]
We should use the highest possible priority for routes to local addresses.

Requested by claudio@

10 years agoJust use char ** for argv like normal people, not char *const *.
nicm [Fri, 9 May 2014 09:11:24 +0000 (09:11 +0000)]
Just use char ** for argv like normal people, not char *const *.

10 years agoAdd a bit more detail about dot notation from the old inet(3) manpage.
guenther [Fri, 9 May 2014 06:38:27 +0000 (06:38 +0000)]
Add a bit more detail about dot notation from the old inet(3) manpage.

ok jmc@

10 years agomy previous attempt to fix the renaming of the inet(3) pages was wrong;
jmc [Fri, 9 May 2014 06:37:38 +0000 (06:37 +0000)]
my previous attempt to fix the renaming of the inet(3) pages was wrong;
this fixes those by referencing the correct page, and cleans up the netintro/
inet entries;

all this on the advice (and ok) of guenther!

10 years agoget rid of redundant {csa,flow}_{src,dst}id pointers, so we don't need
markus [Fri, 9 May 2014 06:37:24 +0000 (06:37 +0000)]
get rid of redundant {csa,flow}_{src,dst}id pointers, so we don't need
to update it on rekey (fixes use-after-free); ok mikeb@

10 years agoreplace iked_transform pointer with xform id, since target of pointer
markus [Fri, 9 May 2014 06:29:46 +0000 (06:29 +0000)]
replace iked_transform pointer with xform id, since target of pointer
might be freed (e.g. on ike sa rekey); ok mikeb@

10 years agowhen demonstrating the correct "double-check" idiom, provide a
deraadt [Fri, 9 May 2014 05:14:17 +0000 (05:14 +0000)]
when demonstrating the correct "double-check" idiom, provide a
reminder that the return value is int...

10 years agostop using B_AGE, it was effectively retired some time ago.
tedu [Fri, 9 May 2014 03:54:28 +0000 (03:54 +0000)]
stop using B_AGE, it was effectively retired some time ago.

10 years agodisable IO_NOCACHE B_NOCACHE conversion until it works.
tedu [Fri, 9 May 2014 03:48:58 +0000 (03:48 +0000)]
disable IO_NOCACHE B_NOCACHE conversion until it works.

10 years agoKNF: unify style and reduce indentation in get_line(), no binary change
schwarze [Fri, 9 May 2014 03:13:24 +0000 (03:13 +0000)]
KNF: unify style and reduce indentation in get_line(), no binary change
ok cmp(1)

10 years agoAfter entering an invalid three-letter card name, one letter card names
schwarze [Fri, 9 May 2014 02:47:25 +0000 (02:47 +0000)]
After entering an invalid three-letter card name, one letter card names
stopped working because the third letter remained in the buffer,
incard() skipped the NUL and used the old garbage.
Fix this bug reported by pjanzen@, but in a simpler way than he
suggested, by just clearing any trailing garbage from the buffer.
ok pjanzen@

10 years agoVarious cleanup:
schwarze [Fri, 9 May 2014 00:03:41 +0000 (00:03 +0000)]
Various cleanup:
1. Style: Don't use variables as format strings.
NetBSD rev. 1.26 (May 23, 2011) joerg@NetBSD via maintainer pjanzen@.
2. Style: Avoid needless pointer arithmetics.
NetBSD rev. 1.27 (Oct 13, 2012) dholland@NetBSD via pjanzen@,
who also applied some KNF to the indentation while here.
3. End curses before printing fatal error messages; from pjanzen@.

10 years agoDo not read from index -1 of an array.
schwarze [Thu, 8 May 2014 23:12:40 +0000 (23:12 +0000)]
Do not read from index -1 of an array.
NetBSD rev. 1.16 (Oct 13, 2012) by dholland@NetBSD via maintainer pjanzen@.

10 years agoFormat string fixes for m88k; remove -Wno-format from the m88k kernels.
miod [Thu, 8 May 2014 22:17:33 +0000 (22:17 +0000)]
Format string fixes for m88k; remove -Wno-format from the m88k kernels.

10 years agomove reallocarray() to a seperate file so that -portable applications
deraadt [Thu, 8 May 2014 21:43:49 +0000 (21:43 +0000)]
move reallocarray() to a seperate file so that -portable applications
can avoid reinventing the wheel
ok guenther schwarze

10 years agoFormat string fixes and removal of -Wno-format for landisk kernels
miod [Thu, 8 May 2014 21:43:04 +0000 (21:43 +0000)]
Format string fixes and removal of -Wno-format for landisk kernels

10 years agoFormat string fixes and removal of -Wno-format for hppa kernels.
miod [Thu, 8 May 2014 21:32:45 +0000 (21:32 +0000)]
Format string fixes and removal of -Wno-format for hppa kernels.

10 years agoUpdate #include list after not-so-recent uvm includes cleanups.
miod [Thu, 8 May 2014 21:31:56 +0000 (21:31 +0000)]
Update #include list after not-so-recent uvm includes cleanups.

10 years agoFormat string fixes and removal of -Wno-format for arm kernels.
miod [Thu, 8 May 2014 21:17:00 +0000 (21:17 +0000)]
Format string fixes and removal of -Wno-format for arm kernels.

10 years agoFormat string fixes for alpha kernels, and remove -Wno-format
miod [Thu, 8 May 2014 20:46:49 +0000 (20:46 +0000)]
Format string fixes for alpha kernels, and remove -Wno-format

10 years agoFix some potential integer overflows caused by converting a page number into
kettenis [Thu, 8 May 2014 20:08:50 +0000 (20:08 +0000)]
Fix some potential integer overflows caused by converting a page number into
an offset/size/address by shifting by PAGE_SHIFT.  Make uvm_objwrire/unwire
use voff_t instead of off_t.  The former is the right type here even if it is
equivalent to the latter.

Inspired by a somewhat similar changes in Bitrig.

ok deraadt@, guenther@

10 years agoReplace hand-crafted STRICT_ALIGNMENT with system provided __STRICT_ALIGNMENT.
miod [Thu, 8 May 2014 19:59:19 +0000 (19:59 +0000)]
Replace hand-crafted STRICT_ALIGNMENT with system provided __STRICT_ALIGNMENT.
Forgotten during yesterday's STRICT_ALIGNMENT cleanup commit.

10 years agoNo longer build vax kernels with -Wno-format.
miod [Thu, 8 May 2014 19:06:35 +0000 (19:06 +0000)]
No longer build vax kernels with -Wno-format.

10 years agoFormat string fixes.
miod [Thu, 8 May 2014 19:06:07 +0000 (19:06 +0000)]
Format string fixes.

10 years agoRecognize `t' as a valid format modifier for kprintf-style format strings.
miod [Thu, 8 May 2014 18:58:47 +0000 (18:58 +0000)]
Recognize `t' as a valid format modifier for kprintf-style format strings.

10 years agoFormat string fix in disabled code. Format bus_space_handle_t with %xl,
sf [Thu, 8 May 2014 18:09:22 +0000 (18:09 +0000)]
Format string fix in disabled code. Format bus_space_handle_t with %xl,
cast bus_space_tag_t to (u_long)

10 years agoEnable -Wno-format in the kernel on i386 & amd64
sf [Thu, 8 May 2014 17:59:28 +0000 (17:59 +0000)]
Enable -Wno-format in the kernel on i386 & amd64

ok jsg@
"go for it" kettenis@

10 years agoregen
miod [Thu, 8 May 2014 17:38:40 +0000 (17:38 +0000)]
regen

10 years agoRemove irrelevant devices from the ramdisk target; spotted by deraadt
miod [Thu, 8 May 2014 17:38:12 +0000 (17:38 +0000)]
Remove irrelevant devices from the ramdisk target; spotted by deraadt