Re: Fix some w(1) warnings, remove bin/ps/fmt.c

2017-05-30 Thread Ted Unangst
Ingo Schwarze wrote: > Hi, > > Brian Callahan wrote on Mon, May 29, 2017 at 04:47:42PM -0400: > > > [...] functions fmt_putc and fmt_puts. > > w(1) is doing a reacharound to ps(1) for these functions. > > [...] > > A grep of the tree shows that the only place these two functions > > are used is i

Re: Fix some w(1) warnings, remove bin/ps/fmt.c

2017-05-30 Thread Ingo Schwarze
Hi, Brian Callahan wrote on Mon, May 29, 2017 at 04:47:42PM -0400: > [...] functions fmt_putc and fmt_puts. > w(1) is doing a reacharound to ps(1) for these functions. > [...] > A grep of the tree shows that the only place these two functions > are used is in usr.bin/w/w.c so I put them in there

Fix some w(1) warnings, remove bin/ps/fmt.c

2017-05-29 Thread Brian Callahan
Hi tech -- While building w(1) with WARNINGS=yes, clang complained that there were missing prototypes for the functions fmt_putc and fmt_puts. w(1) is doing a reacharound to ps(1) for these functions. And while putting the prototypes in bin/ps/extern.h silenced the warnings, that seemed strange.