dc(1): Merge minor changes from OpenBSD.
authorpfg <pfg@FreeBSD.org>
Sun, 26 Feb 2017 22:17:06 +0000 (22:17 +0000)
committerpfg <pfg@FreeBSD.org>
Sun, 26 Feb 2017 22:17:06 +0000 (22:17 +0000)
commite69cea8126c83815fbb6fe6a4e8bd747a354544a
treec9124fecde79bbc9e0700ef2c43fc0ee54e3ffb8
parent13fe9ebd60c98dfea92cc16e40f0f38528c6a6e8
dc(1): Merge minor changes from OpenBSD.

Prefer setvbuf() to setlinebuf() for portability.
Some style(9) and redundant tests for NULL.

These are only meant to ease up merging newer changes but we are skipping
changes done in order to accomodate OpenBSD's pledge support.

Obtained from: OpenBSD
MFC after: 2 weeks
usr.bin/dc/bcode.c
usr.bin/dc/dc.c
usr.bin/dc/stack.c