freebsd-dev/usr.sbin/newsyslog
Mark Johnston 28984f2552 Simplify compression code.
- Remove the compression suffix macros and move them directly into the
  compress_type array.
- Remove the hardcoded sizes on the suffix and compression args arrays.
- Simplify the compression args arrays at the expense of a __DECONST
  when calling execv().
- Rewrite do_zipwork.  The COMPRESS_* macros can directly index the
  compress_types array, so the outer loop is not needed. Convert
  fixed-length strings into asprintf or sbuf calls.

Submitted by:	Dan Nelson <dnelson_1901@yahoo.com>
Reviewed by:	gad
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D16518
2018-08-08 17:26:51 +00:00
..
tests Adjust the number of tests after r336913. 2018-08-01 18:41:43 +00:00
extern.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
Makefile Simplify compression code. 2018-08-08 17:26:51 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
newsyslog.8 newsyslog.8: Remove cutesy nonsense 2018-07-19 16:03:20 +00:00
newsyslog.c Simplify compression code. 2018-08-08 17:26:51 +00:00
newsyslog.conf.5 Sort the list of flags in newsyslog.conf entries. 2018-01-16 00:47:53 +00:00
pathnames.h Add a new Y flag to newsyslog.conf 2017-04-15 20:37:34 +00:00
ptimes.c Add newsyslog capability to write RFC5424 compliant rotation message. 2017-05-26 16:36:30 +00:00