m4 cleanup

2013-04-20 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 m

Re: Removing -Wno-format from kernel makefiles

2013-04-20 Thread Theo de Raadt
> I can't see that we would add an arch where sizeof(ptrdiff_t) != > sizeof(size_t). We run on I32LP64 and ILP32, therefore, it seems better to match 't' to some other LONG print block, like 'D'. size_t is an high-level abstraction, not a base type.

Re: Removing -Wno-format from kernel makefiles

2013-04-20 Thread Stefan Fritsch
On Sun, 14 Apr 2013, Theo de Raadt wrote: Since the kernel's printf does not support %td for ptrdiff_t, I have used %ld instead. %zd would also work. Is there a preferred way? Or try to add %td support to kernel printf? The patch below seems to do the trick for gcc 4.2. I can't see that we w