m4 cleanup

2013-04-21 Thread Ted Unangst
For whatever reason, I found myself looking at the m4 code. In eval.c, there are some funny functions. I figure if you have to cast every instance of a variable to a different type, maybe the problem is you're starting with the wrong type. Switching to unsigned char * inputs makes these functions

Re: Small binutils tweak

2013-04-21 Thread Jonathan Gray
On Sat, Mar 02, 2013 at 10:36:50AM -0500, Brian Callahan wrote: Hi tech -- While doing some ports testing with clang, I came across the binutils bug mentioned here: http://lists.gnu.org/archive/html/bug-binutils/2004-07/msg0.html Below is a backport of the commit mentioned later in

Re: Removing -Wno-format from kernel makefiles

2013-04-21 Thread Mark Kettenis
Date: Sat, 20 Apr 2013 13:27:34 +0200 (CEST) From: Stefan Fritsch s...@sfritsch.de Adding ptrdiff_t to stdint.h is not strictly necessary, but I see no reason not to do it. sys/stdint.h is stdint.h and the C standard doesn't allow you to have ptrdiff_t in stdint.h

Re: m4 cleanup

2013-04-21 Thread Marc Espie
On Sun, Apr 21, 2013 at 02:28:09AM -0400, Ted Unangst wrote: For whatever reason, I found myself looking at the m4 code. In eval.c, there are some funny functions. I figure if you have to cast every instance of a variable to a different type, maybe the problem is you're starting with the wrong

Re: Removing -Wno-format from kernel makefiles

2013-04-21 Thread Stefan Fritsch
Moved ptrdiff_t definition to types.h with proper guards. Assume ptrdiff_t is long in subr_prf.c OK? --- a/gnu/gcc/gcc/c-format.c +++ b/gnu/gcc/gcc/c-format.c @@ -325,6 +325,7 @@ static const format_length_info kprintf_length_specs[] = { l, FMT_LEN_l, STD_C89, ll, FMT_LEN_ll, STD_C9L },

Re: Removing -Wno-format from kernel makefiles

2013-04-21 Thread Mark Kettenis
Date: Sun, 21 Apr 2013 15:02:49 +0200 (CEST) From: Stefan Fritsch s...@sfritsch.de Moved ptrdiff_t definition to types.h with proper guards. Assume ptrdiff_t is long in subr_prf.c OK? No. --- a/sys/sys/types.h +++ b/sys/sys/types.h @@ -177,6 +177,11 @@ typedef __clockid_t

Re: Small binutils tweak

2013-04-21 Thread Brian Callahan
On 04/21/13 03:21, Jonathan Gray wrote: On Sat, Mar 02, 2013 at 10:36:50AM -0500, Brian Callahan wrote: Hi tech -- While doing some ports testing with clang, I came across the binutils bug mentioned here: http://lists.gnu.org/archive/html/bug-binutils/2004-07/msg0.html Below is a backport

tee rewrite

2013-04-21 Thread Ted Unangst
ok, it's not a rewrite, but I changed a lot of the lines. Use better types, check errors against -1, delete some casts, stack buffer eliminates one malloc, braces for long blocks. Index: tee.c === RCS file:

Re: Removing -Wno-format from kernel makefiles

2013-04-21 Thread Stefan Fritsch
On Sunday 21 April 2013, Mark Kettenis wrote: +++ b/sys/sys/types.h @@ -177,6 +177,11 @@ typedef__clockid_t clockid_t; typedef __size_tsize_t; #endif +#ifndef_PTRDIFF_T_DEFINED_ +#define_PTRDIFF_T_DEFINED_ +typedef__ptrdiff_t

Re: Removing -Wno-format from kernel makefiles

2013-04-21 Thread Philip Guenther
On Sun, Apr 21, 2013 at 12:15 PM, Stefan Fritsch s...@sfritsch.de wrote: On Sunday 21 April 2013, Mark Kettenis wrote: ... You can't put ptrdiff_t in sys/types.h either. Why not? POSIX only speaks about at least the following types in sys/types.h, so there is no reason why it may not define

Re: Removing -Wno-format from kernel makefiles

2013-04-21 Thread Stefan Fritsch
On Sunday 21 April 2013, Philip Guenther wrote: On Sun, Apr 21, 2013 at 12:15 PM, Stefan Fritsch s...@sfritsch.de wrote: On Sunday 21 April 2013, Mark Kettenis wrote: ... You can't put ptrdiff_t in sys/types.h either. Why not? POSIX only speaks about at least the following types in

Digi Neo 8 PCIe

2013-04-21 Thread Hugo Lombard
Hi The patch below made a Digi Neo 8 PCIe adapter work for me. Not stress tested, just basic loopback and connecting to the on-board serial as console. Change in dmesg: -vendor Digi, unknown product 0x00f0 (class communications subclass serial, rev 0x02) at pci14 dev 0 function 0 not

ffs inode blocks

2013-04-21 Thread Ted Unangst
From FreeBSD. FFS2 inodes have unsigned block counts, so we have to perform the underflow test before the substraction. Index: ffs_inode.c === RCS file: /cvs/src/sys/ufs/ffs/ffs_inode.c,v retrieving revision 1.62 diff -u -p -r1.62

Re: tee rewrite

2013-04-21 Thread Kenneth R Westerback
On Sun, Apr 21, 2013 at 01:33:55PM -0400, Ted Unangst wrote: ok, it's not a rewrite, but I changed a lot of the lines. Use better types, check errors against -1, delete some casts, stack buffer eliminates one malloc, braces for long blocks. As long as you're in there, why not eliminate LIST

[UPDATE] Sendmail 8.14.7 released

2013-04-21 Thread Jérémie Courrèges-Anglas
Hi, a new Sendmail release has been published: http://marc.info/?l=sendmail-announcem=136655938302597w=2 Here's a diff for this update: http://wxcvbn.org/~jca/tmp/sendmail-8.14.7.diff Release notes: 8.14.7/8.14.7 2013/04/21 Drop support for IPv4-mapped IPv6 addresses to prevent