openbsd
10 years agodocument "tc";
jmc [Mon, 11 Aug 2014 12:57:14 +0000 (12:57 +0000)]
document "tc";
From: Edward

ok millert

10 years agoFewer <netinet/in_systm.h>
mpi [Mon, 11 Aug 2014 12:45:45 +0000 (12:45 +0000)]
Fewer <netinet/in_systm.h>

10 years agobring back r1.131:
dlg [Mon, 11 Aug 2014 12:37:36 +0000 (12:37 +0000)]
bring back r1.131:

take the pools mutex when copying stats out of it in the sysctl
path so we are guaranteed a consistent snapshot.

10 years agoPut back the checks about RTF_LOCAL routes now that userland tools are
mpi [Mon, 11 Aug 2014 11:59:05 +0000 (11:59 +0000)]
Put back the checks about RTF_LOCAL routes now that userland tools are
aware of them.

Original commit message was:

Reserve the highest route priority for kernel-managed routes and prevent
userland from playing with the local and broadcast flags.

ok claudio@

10 years agoConvert ARP llinfo allocation to pool(9).
mpi [Mon, 11 Aug 2014 11:50:41 +0000 (11:50 +0000)]
Convert ARP llinfo allocation to pool(9).

ok henning@, dlg@

10 years agoCheck the return value of sk_SSL_CIPHER_new_null(), since it allocates
jsing [Mon, 11 Aug 2014 10:46:19 +0000 (10:46 +0000)]
Check the return value of sk_SSL_CIPHER_new_null(), since it allocates
memory and can return NULL.

ok miod@

10 years agomissing memset in table_api.c (currently only used by pluggable tables)
gilles [Mon, 11 Aug 2014 09:50:51 +0000 (09:50 +0000)]
missing memset in table_api.c (currently only used by pluggable tables)

diff from Martijn van Duren

10 years agoDo not try to delete RTF_LOCAL entries. Such routes are automatically
mpi [Mon, 11 Aug 2014 09:47:56 +0000 (09:47 +0000)]
Do not try to delete RTF_LOCAL entries.  Such routes are automatically
created /deleted by the kernel when an IP address is added/removed
on/from an interface and should not be manipulated by userland tools.

ok henning@, jca@

10 years agoSteal stripcom() from /etc/rc to parse sysmerge.ignore.
ajacoutot [Mon, 11 Aug 2014 09:03:27 +0000 (09:03 +0000)]
Steal stripcom() from /etc/rc to parse sysmerge.ignore.

10 years agoadd a caveat about databases;
jmc [Mon, 11 Aug 2014 08:21:55 +0000 (08:21 +0000)]
add a caveat about databases;
From: Matthew Weigel

ok gilles

10 years agoMove a sentence to the corresponding option description.
ajacoutot [Mon, 11 Aug 2014 06:30:39 +0000 (06:30 +0000)]
Move a sentence to the corresponding option description.

from jmc@

10 years agoUnchecked memory allocation and potential leak upon error in
miod [Mon, 11 Aug 2014 04:46:42 +0000 (04:46 +0000)]
Unchecked memory allocation and potential leak upon error in
ssl3_get_cert_verify().
ok guenther@ jsing@

10 years agoRemove now-unused SSL2_STATE as well as ssl2-specific state machine values.
miod [Mon, 11 Aug 2014 04:45:19 +0000 (04:45 +0000)]
Remove now-unused SSL2_STATE as well as ssl2-specific state machine values.
ok guenther@ jsing@

10 years agostart catching up with recent code changes, but no new files yet
schwarze [Mon, 11 Aug 2014 04:18:18 +0000 (04:18 +0000)]
start catching up with recent code changes, but no new files yet

10 years agoCurrently, ssl3_put_char_by_bytes(NULL, NULL) is just a long handed way
jsing [Mon, 11 Aug 2014 01:10:42 +0000 (01:10 +0000)]
Currently, ssl3_put_char_by_bytes(NULL, NULL) is just a long handed way
of writing "2". Add a define for the SSL3_CIPHER_VALUE_SIZE (rather than
using a less-readable hardcoded constant everywhere) and replace the
ssl3_put_char_by_bytes(NULL, NULL) calls with it.

ok bcook@ miod@

10 years agoProvide a ssl3_get_cipher_by_id() function that allows ciphers to be looked
jsing [Mon, 11 Aug 2014 01:06:22 +0000 (01:06 +0000)]
Provide a ssl3_get_cipher_by_id() function that allows ciphers to be looked
up by their ID. For one, this avoids an ugly mess in ssl_sess.c, where the
cipher value is manually written into a buffer, just so the cipher can be
located using ssl3_get_cipher_by_char().

ok bcook@ miod@

10 years agoWrite the core file of a non-suid process into the current directory
bluhm [Sun, 10 Aug 2014 23:44:20 +0000 (23:44 +0000)]
Write the core file of a non-suid process into the current directory
even if sysctl kern.nosuidcoredump has been set to 2 or 3.  This
allows a regular user to debug his programs again.
OK guenther@ deraadt@

10 years agoThere was a race in relayd that caused connections to hang. It
bluhm [Sun, 10 Aug 2014 21:55:17 +0000 (21:55 +0000)]
There was a race in relayd that caused connections to hang.  It
happend with non-persistent PUT connections that had a very short
body.  If the whole body was read from the client before the
connection to the server was set up, the event callback was not
called.  Do the regular checks after relay_connect() succeeded.
OK reyk@

10 years agoImprove variables listing in x11/kde4 module description.
zhuk [Sun, 10 Aug 2014 21:09:26 +0000 (21:09 +0000)]
Improve variables listing in x11/kde4 module description.

10 years ago[] -> [[]]
rpe [Sun, 10 Aug 2014 20:54:17 +0000 (20:54 +0000)]
[] -> [[]]

OK krw@
"well ok" halex@

10 years ago- add -p to SYNOPSIS
jmc [Sun, 10 Aug 2014 17:15:18 +0000 (17:15 +0000)]
- add -p to SYNOPSIS
- the argument to -s is not optional

ok ajacoutot

10 years agoguenther wants a copyright
tedu [Sun, 10 Aug 2014 16:36:13 +0000 (16:36 +0000)]
guenther wants a copyright

10 years agoConvert if foo; then bar; fi blocks to foo && bar but leave out enable_network()
rpe [Sun, 10 Aug 2014 16:32:28 +0000 (16:32 +0000)]
Convert if foo; then bar; fi blocks to foo && bar but leave out enable_network()
because it shares code&style with /etc/netstart. No functional change.

with feedback and OK krw@ halex@

10 years agoTweak cipher list comments and add missing cipher value comments.
jsing [Sun, 10 Aug 2014 15:06:15 +0000 (15:06 +0000)]
Tweak cipher list comments and add missing cipher value comments.

10 years ago{ foo ; bar ; } -> { foo; bar; }
rpe [Sun, 10 Aug 2014 14:59:22 +0000 (14:59 +0000)]
{ foo ; bar ; } -> { foo; bar; }

OK krw@

10 years agoRemove disabled (weakened export and non-ephemeral DH) cipher suites from
jsing [Sun, 10 Aug 2014 14:57:04 +0000 (14:57 +0000)]
Remove disabled (weakened export and non-ephemeral DH) cipher suites from
the cipher list. This reduces code size, saves data segment space and
prevents them from being turned back on at runtime by flipping a bit in
memory.

ok guenther@

10 years agoSince we no longer need to support SSLv2-style cipher lists, start
jsing [Sun, 10 Aug 2014 14:42:55 +0000 (14:42 +0000)]
Since we no longer need to support SSLv2-style cipher lists, start
unravelling the maze of function pointers and callbacks by directly
calling ssl3_{get,put}_cipher_by_char() and removing the
ssl_{get,put}_cipher_by_char macros.

Prompted by similar changes in boringssl.

ok guenther.

10 years agoAsk for the descriptor size corresponding to the number of ports present
mpi [Sun, 10 Aug 2014 13:32:14 +0000 (13:32 +0000)]
Ask for the descriptor size corresponding to the number of ports present
in the hub, not from some random value from the stack.

10 years agoDo not allocate space for the whole structure when we just want to store
mpi [Sun, 10 Aug 2014 12:58:49 +0000 (12:58 +0000)]
Do not allocate space for the whole structure when we just want to store
a pointer, found by clang.

10 years agosizeof() a pointer of the right struct to appease clang.
mpi [Sun, 10 Aug 2014 12:48:43 +0000 (12:48 +0000)]
sizeof() a pointer of the right struct to appease clang.

10 years agoNote that qemu 1.7.2 has the VLAN bug fix, too
sf [Sun, 10 Aug 2014 12:28:09 +0000 (12:28 +0000)]
Note that qemu 1.7.2 has the VLAN bug fix, too

10 years agozap trailing whitespace
jasper [Sun, 10 Aug 2014 11:26:07 +0000 (11:26 +0000)]
zap trailing whitespace

10 years agosome Ev fixes;
jmc [Sun, 10 Aug 2014 11:23:02 +0000 (11:23 +0000)]
some Ev fixes;

10 years agoMerge xhci_device_setup() into xhci_pipe_init() there's no reason to
mpi [Sun, 10 Aug 2014 11:21:49 +0000 (11:21 +0000)]
Merge xhci_device_setup() into xhci_pipe_init() there's no reason to
have a separate function anymore, it is just a wrapper around the "set
address" command.

10 years agoSince USB xfer pools are accessed in interrupt context, initialize them
mpi [Sun, 10 Aug 2014 11:18:57 +0000 (11:18 +0000)]
Since USB xfer pools are accessed in interrupt context, initialize them
with the correct ipl to prevent your CPU from locking against itself.

10 years agoSet and check for XFER_BUSY in the common methods instead of doing it
mpi [Sun, 10 Aug 2014 11:00:35 +0000 (11:00 +0000)]
Set and check for XFER_BUSY in the common methods instead of doing it
in every HC driver.

10 years agotypo in debug message
ratchov [Sun, 10 Aug 2014 10:25:35 +0000 (10:25 +0000)]
typo in debug message

10 years agoinitialize mmcpos, found by guenther
ratchov [Sun, 10 Aug 2014 10:25:04 +0000 (10:25 +0000)]
initialize mmcpos, found by guenther

10 years agoDocument SUBST_*
espie [Sun, 10 Aug 2014 10:10:21 +0000 (10:10 +0000)]
Document SUBST_*

10 years agocomment what's going on
espie [Sun, 10 Aug 2014 10:04:39 +0000 (10:04 +0000)]
comment what's going on

10 years agoOuch... fuck cvs
espie [Sun, 10 Aug 2014 10:03:46 +0000 (10:03 +0000)]
Ouch... fuck cvs

10 years agoif pkg_create is run as non-root, restory correct group/owner to root/bin.
espie [Sun, 10 Aug 2014 10:01:03 +0000 (10:01 +0000)]
if pkg_create is run as non-root, restory correct group/owner to root/bin.

also, remove write permissions without explicit modes. Allows fake installs
to keep directories/files writable while producing correct package.

10 years agofix kqueue read/write filters for msdosfs and fusefs
jsg [Sun, 10 Aug 2014 09:23:06 +0000 (09:23 +0000)]
fix kqueue read/write filters for msdosfs and fusefs
ok tedu@

10 years agoTypo. ok deraadt@ jmc@
matthieu [Sun, 10 Aug 2014 09:15:39 +0000 (09:15 +0000)]
Typo. ok deraadt@ jmc@

10 years agodebug level test for clock_gettime() calls should match
jsg [Sun, 10 Aug 2014 09:11:07 +0000 (09:11 +0000)]
debug level test for clock_gettime() calls should match
ok ratchov@

10 years agoAF_IMPLINK and AF_BLUETOOTH are gone, but add printing of SOCK_SEQPACKET
guenther [Sun, 10 Aug 2014 07:31:58 +0000 (07:31 +0000)]
AF_IMPLINK and AF_BLUETOOTH are gone, but add printing of SOCK_SEQPACKET

10 years agoDon't need to know how to format bluetooth socket info here
guenther [Sun, 10 Aug 2014 07:29:45 +0000 (07:29 +0000)]
Don't need to know how to format bluetooth socket info here

10 years agoNo more bluetooth in netintr(), so delete NETISR_BT. Zap the declaration
guenther [Sun, 10 Aug 2014 07:28:32 +0000 (07:28 +0000)]
No more bluetooth in netintr(), so delete NETISR_BT.  Zap the declaration
for btintr(), as well as the also gone atintr() and clnlintr()

10 years agoAF_BLUETOOTH is gone. AF_LOCAL isn't involved pipe (and portals are gone).
guenther [Sun, 10 Aug 2014 07:23:59 +0000 (07:23 +0000)]
AF_BLUETOOTH is gone.  AF_LOCAL isn't involved pipe (and portals are gone).

10 years agoAF_IMPLINK and AF_BLUETOOTH are gone
guenther [Sun, 10 Aug 2014 07:19:08 +0000 (07:19 +0000)]
AF_IMPLINK and AF_BLUETOOTH are gone

10 years agoOnly need <stdint.h> and not all of <inttypes.h> here
guenther [Sun, 10 Aug 2014 05:09:31 +0000 (05:09 +0000)]
Only need <stdint.h> and not all of <inttypes.h> here

10 years agoOnly need <stdint.h> and not all of <inttypes.h> here
guenther [Sun, 10 Aug 2014 05:08:31 +0000 (05:08 +0000)]
Only need <stdint.h> and not all of <inttypes.h> here

10 years agoOnly need <stdint.h> and not all of <inttypes.h> here
guenther [Sun, 10 Aug 2014 05:06:38 +0000 (05:06 +0000)]
Only need <stdint.h> and not all of <inttypes.h> here

10 years agoOnly need <stdint.h> and not all of <inttypes.h> here
guenther [Sun, 10 Aug 2014 05:00:25 +0000 (05:00 +0000)]
Only need <stdint.h> and not all of <inttypes.h> here

10 years agoOnly need <stdint.h> and not all of <inttypes.h> here
guenther [Sun, 10 Aug 2014 04:57:33 +0000 (04:57 +0000)]
Only need <stdint.h> and not all of <inttypes.h> here

10 years agoFix the length check for reinjected ICMP packets: sizeof(struct icmp) is
lteo [Sun, 10 Aug 2014 03:26:20 +0000 (03:26 +0000)]
Fix the length check for reinjected ICMP packets: sizeof(struct icmp) is
28 but an ICMP packet can be as small as 8 bytes (e.g. an ICMP echo
request packet with no payload), so check against ICMP_MINLEN instead.

Prior to this fix, divert(4) would erroneously discard valid ICMP
packets that are shorter than 20 bytes.

ICMPv6 is not affected, so this change applies to ICMP over IPv4 only.

ok florian@ henning@

10 years agoFormat time_t with %lld after casting to long long
guenther [Sun, 10 Aug 2014 03:25:39 +0000 (03:25 +0000)]
Format time_t with %lld after casting to long long

10 years agoRename p_hdrlen to min_hdrlen to better reflect its purpose.
lteo [Sun, 10 Aug 2014 03:24:51 +0000 (03:24 +0000)]
Rename p_hdrlen to min_hdrlen to better reflect its purpose.

No object file change
ok florian@ henning@

10 years agoDelete duplicate conditional
guenther [Sun, 10 Aug 2014 02:49:24 +0000 (02:49 +0000)]
Delete duplicate conditional

diff from frantisek holop (minusf (at) obiit.org)

10 years agoReplace F_DUPFD followed by setting FD_CLOEXEC with just F_DUPFD_CLOEXEC
guenther [Sun, 10 Aug 2014 02:44:26 +0000 (02:44 +0000)]
Replace F_DUPFD followed by setting FD_CLOEXEC with just F_DUPFD_CLOEXEC

ok matthew@ millert@

10 years agoAdd Xr to skey and stty
guenther [Sun, 10 Aug 2014 02:41:41 +0000 (02:41 +0000)]
Add Xr to skey and stty

10 years agoDelete extern declarations for variables that don't exist (anymore?)
guenther [Sun, 10 Aug 2014 02:38:24 +0000 (02:38 +0000)]
Delete extern declarations for variables that don't exist (anymore?)

10 years agoOnly need <stdint.h> and not all of <inttypes.h> here
guenther [Sun, 10 Aug 2014 02:15:18 +0000 (02:15 +0000)]
Only need <stdint.h> and not all of <inttypes.h> here

10 years agomsts(4) appears to support TIOCSTSTAMP
guenther [Sun, 10 Aug 2014 02:09:35 +0000 (02:09 +0000)]
msts(4) appears to support TIOCSTSTAMP

From Maurice Janssen (maurice (at) z74.net)

10 years agoAdd F_DUPFD_CLOEXEC handling
guenther [Sun, 10 Aug 2014 00:21:49 +0000 (00:21 +0000)]
Add F_DUPFD_CLOEXEC handling

10 years agoAdd newer errnos
guenther [Sun, 10 Aug 2014 00:20:55 +0000 (00:20 +0000)]
Add newer errnos

10 years agoSwitch from calloc() to reallocarray() where the zeroing isn't needed
guenther [Sat, 9 Aug 2014 22:44:15 +0000 (22:44 +0000)]
Switch from calloc() to reallocarray() where the zeroing isn't needed

10 years agoUse time_t for storing times
guenther [Sat, 9 Aug 2014 22:42:13 +0000 (22:42 +0000)]
Use time_t for storing times

10 years agoParse times with strtoll() instead of strtol()
guenther [Sat, 9 Aug 2014 22:40:16 +0000 (22:40 +0000)]
Parse times with strtoll() instead of strtol()

10 years agoRegenerate to pick up time_t changes
guenther [Sat, 9 Aug 2014 22:39:08 +0000 (22:39 +0000)]
Regenerate to pick up time_t changes

10 years agobfd-in2.h is generated from this; merge back a change that was made there
guenther [Sat, 9 Aug 2014 22:37:29 +0000 (22:37 +0000)]
bfd-in2.h is generated from this; merge back a change that was made there

10 years agoStore timestamps in time_t
guenther [Sat, 9 Aug 2014 22:34:35 +0000 (22:34 +0000)]
Store timestamps in time_t

10 years agobfd-in2.h is generated from this; merge back a change that was made there
guenther [Sat, 9 Aug 2014 22:32:08 +0000 (22:32 +0000)]
bfd-in2.h is generated from this; merge back a change that was made there

10 years agoAfter a cleanup by deraadt I noticed the four-space-indent had started
halex [Sat, 9 Aug 2014 21:51:29 +0000 (21:51 +0000)]
After a cleanup by deraadt I noticed the four-space-indent had started
infesting the scripts. As we generally use a single tab for line
continuation indent in the scripts, let's reclaim 30 precious bytes!

ok rpe@ krw@

10 years agoFix readelf --debug-dump=frames-interp output: once a register is given
guenther [Sat, 9 Aug 2014 20:08:44 +0000 (20:08 +0000)]
Fix readelf --debug-dump=frames-interp output: once a register is given
a column, it needs to included in all rows, even after the register is
restored.

ok jsg@

10 years agoless chatty; ok ajacoutot
jmc [Sat, 9 Aug 2014 16:39:25 +0000 (16:39 +0000)]
less chatty; ok ajacoutot

10 years agommap(2) requires MAP_PRIVATE ^ MAP_SHARED for flags;
schwarze [Sat, 9 Aug 2014 14:24:49 +0000 (14:24 +0000)]
mmap(2) requires MAP_PRIVATE ^ MAP_SHARED for flags;
found by kristaps@ on Mac OS X

10 years agoExtend comment.
ajacoutot [Sat, 9 Aug 2014 12:46:51 +0000 (12:46 +0000)]
Extend comment.

10 years agoInitial support for handling configuration files from packages
ajacoutot [Sat, 9 Aug 2014 12:45:03 +0000 (12:45 +0000)]
Initial support for handling configuration files from packages
(aka @sample) -- `sysmerge -p`
Worked done at g2k14.
Committing early so we have plenty of time for testing.

with help from espie@
thanks to landry@ for feedback on initial testing

10 years agosysctl.conf is an example.
ajacoutot [Sat, 9 Aug 2014 12:34:05 +0000 (12:34 +0000)]
sysctl.conf is an example.
Tweak error output.
Mention that `-S' has no effect when sets aren't used.

10 years agoAdd support for non-root hubs now that uhub(4) can deal with them. For
mpi [Sat, 9 Aug 2014 10:32:36 +0000 (10:32 +0000)]
Add support for non-root hubs now that uhub(4) can deal with them.  For
the moment only Super and High Speed devices are properly recognized.

Some TT love is required for Full and Low speed devices.

10 years agoCorrectly recognize Super Speed devices, this is part of the work to
mpi [Sat, 9 Aug 2014 09:58:11 +0000 (09:58 +0000)]
Correctly recognize Super Speed devices, this is part of the work to
be able to use USB 3.0 devices behind an external hub.

This is a bit tricky because the SS status use a different power bit
that maps to the Low speed one.  So no longer accept devices without
power bit and fallback to the parent hub's speed in case the status
does not report any particular speed.

Note that xhci(4) root hubs still set the traditionnal UPS_PORT_POWER
bit with the correct device speed.

10 years agoHandle super speed hub descriptors.
mpi [Sat, 9 Aug 2014 09:48:32 +0000 (09:48 +0000)]
Handle super speed hub descriptors.

10 years agoDo not store the whole USB hub descriptor in the "struct usbd_hub"
mpi [Sat, 9 Aug 2014 09:45:14 +0000 (09:45 +0000)]
Do not store the whole USB hub descriptor in the "struct usbd_hub"
to help integrating super speed hubs that use a different descriptor.

10 years agosome minor tweaks;
jmc [Sat, 9 Aug 2014 09:07:14 +0000 (09:07 +0000)]
some minor tweaks;

10 years agosort "prefork", and remove a useless macro;
jmc [Sat, 9 Aug 2014 08:54:03 +0000 (08:54 +0000)]
sort "prefork", and remove a useless macro;

10 years agobasic cleanup;
jmc [Sat, 9 Aug 2014 08:49:48 +0000 (08:49 +0000)]
basic cleanup;

10 years agoAllow to inclue the types section anywhere in the configuration file.
reyk [Sat, 9 Aug 2014 07:35:45 +0000 (07:35 +0000)]
Allow to inclue the types section anywhere in the configuration file.

Found by chris@
OK doug@

10 years agoRemove support for the continuous reporting "any" mouse mode which never
nicm [Sat, 9 Aug 2014 07:33:37 +0000 (07:33 +0000)]
Remove support for the continuous reporting "any" mouse mode which never
really worked properly and is rarely used.

10 years agoBackport from 2.17: mark the _GLOBAL_OFFSET_TABLE_, _DYNAMIC, and
guenther [Sat, 9 Aug 2014 05:52:43 +0000 (05:52 +0000)]
Backport from 2.17: mark the _GLOBAL_OFFSET_TABLE_, _DYNAMIC, and
_PROCEDURE_LINKAGE_TABLE_ symbols as (at least) hidden.

10 years agoBackport from binutils-2.17 the correct i386/amd64 register->int assignments
guenther [Sat, 9 Aug 2014 04:59:02 +0000 (04:59 +0000)]
Backport from binutils-2.17 the correct i386/amd64 register->int assignments
for CFI.  This changes the unwind information generated on amd64.

10 years agoWe don't use the __openbsd_randomdata_{start,end} symbols, but rather
guenther [Sat, 9 Aug 2014 04:49:47 +0000 (04:49 +0000)]
We don't use the __openbsd_randomdata_{start,end} symbols, but rather
get that info via the PT_OPENBSD_RANDOM segment info, so kill the symbols
While here, delete the commented out lines for __DYNAMIC as the question
they ask is answered 'no'

ok matthew@ back in May

10 years agoMatch format width of symbol visibility to the column header
guenther [Sat, 9 Aug 2014 04:35:17 +0000 (04:35 +0000)]
Match format width of symbol visibility to the column header
This corrects the alignment of the columns of hidden symbols

10 years agoOnly need <stdint.h> and not <inttypes.h> here
guenther [Sat, 9 Aug 2014 03:29:35 +0000 (03:29 +0000)]
Only need <stdint.h> and not <inttypes.h> here

10 years agoupdate currency exchange rates;
jmc [Fri, 8 Aug 2014 20:51:43 +0000 (20:51 +0000)]
update currency exchange rates;

10 years agosome basic fixes;
jmc [Fri, 8 Aug 2014 20:50:28 +0000 (20:50 +0000)]
some basic fixes;

10 years agozap trailing whitespace;
jmc [Fri, 8 Aug 2014 20:49:38 +0000 (20:49 +0000)]
zap trailing whitespace;

10 years agoWhen opening directories, re-match the location after the index file
reyk [Fri, 8 Aug 2014 18:29:42 +0000 (18:29 +0000)]
When opening directories, re-match the location after the index file
has been appended.  This allows to use a fastcgi target as the default
index, for example index.php.

OK florian@

10 years agoNo events were added for DNS UDP so it stopped working after the first
reyk [Fri, 8 Aug 2014 18:26:50 +0000 (18:26 +0000)]
No events were added for DNS UDP so it stopped working after the first
request.  Additionally, the DNS code tried to use an invalid timeout.

Fix from mm@freebsd.org
Reported by Johan Schuijt

10 years agoAbsurdly, the return value of sqlite3_column_text()
schwarze [Fri, 8 Aug 2014 17:36:21 +0000 (17:36 +0000)]
Absurdly, the return value of sqlite3_column_text()
is "const unsigned char *", which causes warnings with GCC on Linux.
Explicitly cast to "const char *" to avoid this.
Issue noticed by kristaps@.